just a curious george question
hiya!
I''m just wondering if there is any difference in using either GLuint or int to declare a variable?
thanks,
Scott
Yeah, actually, GLuint is a uint, or unsigned int, while int is just an it.
L8r,
The Rainmaker
L8r,
The Rainmaker
ooooohhhhh... stupid me.. should''ve relized the u in uint there i guess that''s what happens when ya don''t take enough breaks ok... how about this.. what''s the difference in GLfloat and float? or GLint and int?
GLxxx is used instead of xxx for increased portability. For example, on architecture ABC, an int might be 32 bits, and on architecture XYZ, it might 64 bits. So GLint will always be the same size. Also, if the sizes of the data types used are ever changed, you wouldn''t have to go and change, say, all the int''s in your program to longs''s.
~~~~~~~~~~
Martee
http://www.csc.uvic.ca/~mdill
~~~~~~~~~~
Martee
http://www.csc.uvic.ca/~mdill
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
oh. Makes sense.
Thanks,
Scott
Thanks,
Scott
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement