Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- glMatrixMode(GL_PROJECTION);
- glPushMatrix();
- glLoadIdentity();
- gluOrtho2D(0, 100, 0, 100);
- glDisable(GL_LIGHTING);
- glDisable(GL_CULL_FACE);
- char temp[100];
- char temp2[100];
- sprintf_s(temp, "Time: %ds", timer);
- sprintf_s(temp2, "Best time: %ds", 404);
- glColor3f(1, 0, 0);
- renderText(2, 90, temp);
- renderText(75, 95, temp2);
- glEnable(GL_LIGHTING);
- glEnable(GL_CULL_FACE);
- glPopMatrix();
- glMatrixMode(GL_MODELVIEW);
Advertisement
Add Comment
Please, Sign In to add comment