scrodde
12-08-2005, 09:12 AM
I was wondering howto rotate my texture around its center and not the lower left corner that it does now with this code:
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glRotatef(x, 0.0f, 0.0f, 1.0f);
glMatrixMode(GL_MODELVIEW);
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glRotatef(x, 0.0f, 0.0f, 1.0f);
glMatrixMode(GL_MODELVIEW);