If I replace:
glRotatef(xrot,1.0f,0.0f,0.0f);
glRotatef(yrot,0.0f,1.0f,0.0f);
glRotatef(zrot,0.0f,0.0f,1.0f);
with:
glRotatef(GLint(xrot),1.0f,0.0f,0.0f);
glRotatef(GLint(yrot),0.0f,1.0f,0.0f);
glRotatef(GLint(zrot),0.0f,0.0f,1.0f);
It works. So why does glRotatef not work when passed a GLfloat but works when passed a GLint? Again, only on Windows. I have also tried glRotated, same results, only works when passed a GLint.
*** Note: If you read my first post, this testing is done using approach one. Using approach two, these gl functions work as expected.
Bookmarks