VEndymionV

Untitled

Sep 2nd, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. glMatrixMode(GL_PROJECTION);
  2. glPushMatrix();
  3. glLoadIdentity();
  4. gluOrtho2D(0, 100, 0, 100);
  5. glDisable(GL_LIGHTING);
  6. glDisable(GL_CULL_FACE);
  7.  
  8. char temp[100];
  9. char temp2[100];
  10. sprintf_s(temp, "Time: %ds", timer);
  11. sprintf_s(temp2, "Best time: %ds", 404);
  12. glColor3f(1, 0, 0);
  13. renderText(2, 90, temp);
  14. renderText(75, 95, temp2);
  15.  
  16. glEnable(GL_LIGHTING);
  17. glEnable(GL_CULL_FACE);
  18. glPopMatrix();
  19. glMatrixMode(GL_MODELVIEW);
Advertisement
Add Comment
Please, Sign In to add comment