New Paste :: Recent Pastes:: No Line Numbers
texture-stuff by jeickmann
1
glMatrixMode(GL_TEXTURE); glLoadIdentity(); glTranslatef(0.5f,0.5f,0); glRotatef(rotadd, 0.0f, 0.0f, 1.0f); glTranslatef(-0.5f,-0.5f,0); glMatrixMode(GL_MODELVIEW); glBindTexture(...); glBegin(GL_QUADS): //draw the quad-vertices for the rotating texture glEnd(); glMatrixMode(GL_TEXTURE); glLoadIdentity(); glMatrixMode(GL_MODELVIEW); //draw the stuff without the rotating texture