PDA

View Full Version : OpenGL Superbible question...



Y-T
10-28-2000, 10:31 AM
in the "Campfire" example, what does all the
0x00's mean at page 114? the book doesn't seem to explain anything about this...

thanx

DPalomo
10-29-2000, 02:03 AM
Originally posted by Y-T:
in the "Campfire" example, what does all the
0x00's mean at page 114? the book doesn't seem to explain anything about this...


The values in the fire array represent hexadecimal bitmap values. In C '0x...' means that you're defining an hexadecimal value. If you look at the previous page, fig. 4.28 you'll see how this values are interpreted.

Don't worry if you still don't understand. It's not a very common way to define bitmaps.

Hope this helps,

Daniel Palomo van Es

[This message has been edited by DPalomo (edited 10-29-2000).]