VEndymionV

Untitled

Sep 3rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
  2.     glMatrixMode(GL_PROJECTION);
  3.     glPushMatrix();
  4.     glLoadIdentity();
  5.     gluOrtho2D(0, 100, 0, 100);
  6.     glDisable(GL_LIGHTING);
  7.     glDisable(GL_CULL_FACE);
  8.  
  9.     glColor3f(1, 1, 1);
  10.     renderText(10, 90, "Choose game mode by clicking 1, 2 or 3 on your keyboard!");
  11.     renderText(0, 70, "1. Defend Pearl Mode");
  12.     renderText(0, 50, "2. Endless Mode");
  13.     renderText(0, 30, "3. TODO Mode");
  14.     renderText(35, 5, "Game by: Borys Chajdas");
  15.  
  16.     glEnable(GL_LIGHTING);
  17.     glEnable(GL_CULL_FACE);
  18.     glPopMatrix();
  19. glutSwapBuffers();
  20. glFlush();
  21. glutPostRedisplay();
Advertisement
Add Comment
Please, Sign In to add comment