sense of GL variable types?

Started by
12 comments, last by ehmdjii 20 years, 2 months ago
quote:Original post by Enfekted
I''m a little confused about this datatype size thing being resolved with typedefs. Maybe someone could help me out.

say you wrote a program on platform A, whose int size is 32 bits. so you just used "int" instead of GLInt. now you want to compile your code on platform B, whose int size is 16 bits. BAM, you are screwed; you should have used GLInt, which would be typedef''ed to a 32-bit type on platform B.
--- krez ([email="krez_AT_optonline_DOT_net"]krez_AT_optonline_DOT_net[/email])
Advertisement
Again: what''s with GLvoid?
It''s usefull for pointers without specific type. glTexImage for example.
quote:Original post by Beer Hunter
Again: what''s with GLvoid?
Consistancy.

~~~~~Screaming Statue Software. | OpenGL FontLibWhy does Data talk to the computer? Surely he's Wi-Fi enabled... - phaseburn

This topic is closed to new replies.

Advertisement