Most Opengl functions take floats as there arguments. I have been programming and what I have noticed is some people pass arguments with the f ex:
Code:
glColor3f(0.0f,0.0f,1.0f);
I just use 0.0,0.0,1.0
I know these are doubles but is it bad not to implicity tell them the argument is a float?
--AND--
Code:
fread(&image->sizeY, 4, 1, file))
I found this on NeHe and was wondering. Isn't this bad practice, the second argument that is? Shouldn't it be sizeof(unsigned int) and not 4?