OpenGL types


This is a detail but is there a diffrent between GLfloat and float? Does using float instead of GLfloat can be a source of some error?

thanks for help


no It doesnt cause any error to use float instead of GLfloat. I think its just for compatibility on diffent systems like windows vs linux. I could be wrong about that but I know it doesnt cause errors.

On Windows GLfloat is just

typedef float GLfloat;

So they are essentially the same. It’s basically for portability as mdog said.