Original Post
ok my problem is i have a cube and i want to have this cube fly around the screen controlled by the user, the user can rotate the cube and make it fly in any direction they want, my problem is that my cube is always rotating around the center of the screen instead of its center, now i know what your gonna say, your gonna say well thats easy your simply translating first and then rotating, AHA but i am not i am rotating first and then translating but opengl doesn''t seem to understant what the hell i am telling it, in my drawing code i AM rotating before translating but opengl is not it seems to do whatever it wants and its translating and THEN rotating = bad because my "cube" is always rotating around the center of the screen, how can i solve this?
in a nutshell my code looks like this:
glLoadIdentity();
glRotatef(zrot,0.0f,0.0f,1.0f);
glTranslatef(x,y,-25.0f);
glBegin(GL_QUADS);
.
.
.
