7 if(init_opengl() == -1) {
13 void game_shutdown(void)
17 void game_display(void)
19 glClearColor(1, 0, 0, 1);
20 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
23 assert(glGetError() == GL_NO_ERROR);
26 void game_reshape(int x, int y)
28 glViewport(0, 0, x, y);
31 void game_keyboard(int key, int press)
33 if(press && key == 27) {
39 void game_mbutton(int bn, int press, int x, int y)
43 void game_mmotion(int x, int y)