10 if(init_opengl() == -1) {
14 if(load_level(&lvl, "data/test.lvl") == -1) {
21 void game_shutdown(void)
26 void game_display(void)
28 glClearColor(1, 0, 0, 1);
29 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
32 assert(glGetError() == GL_NO_ERROR);
35 void game_reshape(int x, int y)
37 glViewport(0, 0, x, y);
40 void game_keyboard(int key, int press)
42 if(press && key == 27) {
48 void game_mbutton(int bn, int press, int x, int y)
52 void game_mmotion(int x, int y)