...in glTranslatef(); ,
glVertex3f(); ,
GLfloat myGLfloat = 0.0f; ,
...and all those other 'f' things?
Printable View
...in glTranslatef(); ,
glVertex3f(); ,
GLfloat myGLfloat = 0.0f; ,
...and all those other 'f' things?
float. or floating point number. or decimal if you want to look at it that way.
OpenGL functions that take more than one parameter type have several names, each name corresponds to a type.
f : float
i : int
ub : unsigned byte
d : double
It stands for "$$$$" in SEARCH THE $$$$ING WEB.
God Krak. Try reading something before you speak.
...in glTranslatef();
glVertex3f();
the f in these tells you the arguments are in floating point format,
GLfloat myGLfloat = 0.0f; ,
the f in 0.0f, is used as kind of a simple cast to float, to quiet the conversion from float to double warning you would likely get without it, since most compilers treat float point literals as type double