Data types

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


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.

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.