Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
- glMatrixMode(GL_PROJECTION);
- glPushMatrix();
- glLoadIdentity();
- gluOrtho2D(0, 100, 0, 100);
- glDisable(GL_LIGHTING);
- glDisable(GL_CULL_FACE);
- glColor3f(1, 1, 1);
- renderText(10, 90, "Choose game mode by clicking 1, 2 or 3 on your keyboard!");
- renderText(0, 70, "1. Defend Pearl Mode");
- renderText(0, 50, "2. Endless Mode");
- renderText(0, 30, "3. TODO Mode");
- renderText(35, 5, "Game by: Borys Chajdas");
- glEnable(GL_LIGHTING);
- glEnable(GL_CULL_FACE);
- glPopMatrix();
- glutSwapBuffers();
- glFlush();
- glutPostRedisplay();
Advertisement
Add Comment
Please, Sign In to add comment