All pastes #160441 Raw Edit

Stuff

public cpp v1 · immutable
·published 2006-09-04 10:01 UTC
rendered paste body
        glPushMatrix();        glTranslatef(0.0f,0.0f,-10.0f);        glDisable(GL_TEXTURE_2D);        glColor3f(1,0,1);        angle += 100*frametime;        glRotatef(angle, 1, 1, 1);        glBegin (GL_QUADS);            glVertex3f (1, 1, -10);            glVertex3f (10, 1, -10);            glVertex3f (10, 10, -10);            glVertex3f (1, 10, -10);        glEnd ();        glColor3f(1,1,1);        glEnable(GL_TEXTURE_2D);        glPopMatrix();                    renderer->setMode(ORTHO);        textrenderer->renderText("FPS: %f", VID_WIDTH-200, 16, 1/frametime);