PDA

View Full Version : OpenGL types



yaro_dup1
01-14-2003, 11:37 AM
Hi,

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

yaro

mdog1234
01-14-2003, 11:45 AM
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.

Deiussum
01-14-2003, 02:03 PM
On Windows GLfloat is just

typedef float GLfloat;

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