Click to See Complete Forum and Search --> : GL types qestion


Homestead
January 7th, 2004, 02:03 AM
There is GLfloat, GLint etc.
But what s the difference between GLfloat and float ? GLint and int, my book doesnt say anything about the diference, I think they both the same, just one in open GL and the other is normal type used in C/C++. Is that correct ?

Thanks,

Regards,

homestead

Marc G
January 7th, 2004, 04:24 AM
I think they are meant for cross-platform development. A GLint will probably be the same size on every platform, while an int is not garantueed to be of a certain size.

Homestead
January 7th, 2004, 07:05 AM
Originally posted by Marc G
I think they are meant for cross-platform development. A GLint will probably be the same size on every platform, while an int is not garantueed to be of a certain size.
Thanks, I understand it now..:)

Regards,
homestead