1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
4) Background(My Rendering)
void background()
{
glLoadIdentity();
draw_background();
draw_hline();
draw_vline();
draw_colorcircles(-6.5, -3.2, 0, 0 , 255);
draw_colorcircles(-5.5, -3.2, 0, 100 , 0);
draw_colorcircles(-4.5, -3.2, 0, 255 , 255);
draw_colorcircles(-3.5, -3.2, 265, 140 , 0);
draw_colorcircles(-2.5, -3.2, 1, 0 , 0);
draw_colorcircles(-1.5, -3.2, 1, 1 , 1);
glutPrint(4, 7, GLUT_BITMAP_TIMES_ROMAN_24, "MASTERMIND", 1.0, 1.0, 1.0,1.0);
glutPrint(1, 6.5, GLUT_BITMAP_HELVETICA_18, "MASTERMIND is a game of thinking and guessing. Guess the computer`s code in 10 tries and beat the game", 1.0, 1.0, 1.0,1.0);
glutPrint(1, 6.2, GLUT_BITMAP_HELVETICA_18, " and beat the game. You can also enjoy the multiplayer!! Its a bonus feauture!!", 1.0, 1.0, 1.0,1.0);
glutSwapBuffers();
}
|