PDA

View Full Version : Data types



havok13888
07-07-2009, 11: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

Thanks

MalcolmB
07-07-2009, 11: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.

SeanAustin
07-07-2009, 01: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.