GLfloat vs float (C++)

Started by
1 comment, last by Khaos Dragon 16 years, 3 months ago
What are their difference? will there be more efficiency when using one of them to handle large amount of triangle in OpenGL? Thx
Advertisement
OpenGL doesn't specify what exactly a GLfloat is, but on most platforms they are implemented as a typedef for float.
Using GLFLOAT allows you be implementation independent. One implementation may use 64 bit floats, another one may use 32 bit floats. In practice though, I've only seen 32 bit floats in opengl implementations which would make float and GLFloat equivalent on a 32 bit OS.

This topic is closed to new replies.

Advertisement