Mathias Agopian wrote:
[...]
> I don't understand what "looking at a GL_RGB pixel in a word" means. A
> word has 32 bits, GL_RGB has 24.

Well, I thought it was pretty obvious --- you load your 24 bits, in
natural order, into the bottom end of a quad, exactly the same way that
you'd load a 32 bit value or a 16 bit value or an 8 bit value!

The only thing that makes it the slightest bit complicated is that
GL_RGB is unaligned so you wouldn't be able to use a simple LDR
instruction, but that's just an implementation issue.

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ ⍎'⎕',∊N⍴⊂S←'←⎕←(3=T)⋎M⋏2=T←⊃+/(V⌽"⊂M),(V⊝"M),(V,⌽V)⌽"(V,V←1⎺1)⊝"⊂M)'
│ --- Conway's Game Of Life, in one line of APL

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to