View Full Version : Data types

07-07-2009, 10:14 AM
What is the difference between GLsizei, glfloat etc, instead of int or float?

Will using the standard ints or floats make a difference?

Sorry I searched a lot but couldn't find an answer that made sense


07-07-2009, 10:57 AM
It depends on what platform you are compiling on. using GLfloat etc will make your code easier to port to other platforms. On Windows though a GLfloat = float and GLint = int etc.

07-07-2009, 12:44 PM
It is a convention to the openGL standard. Keeping something consistent in your code will, as MalcolmB said, allow for cross-platform ability.

As for the actually different in data storage, I don't know, dependent on platform is all I can assume.