vrheights

view src/game.cc @ 0:ccbd444939a1

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 22 Sep 2014 18:36:24 +0300
parents
children d06e4e24f922
line source
1 #include <stdio.h>
2 #include "opengl.h"
3 #include "game.h"
4 #include "goatvr.h"
6 bool game_init()
7 {
8 init_opengl();
10 if(vr_init() == -1) {
11 return false;
12 }
14 glEnable(GL_DEPTH_TEST);
15 glEnable(GL_CULL_FACE);
16 }
18 void game_cleanup()
19 {
20 vr_shutdown();
21 }
23 void game_update(long tm);
24 void game_display();
25 void game_reshape(int x, int y);
26 void game_keyboard(int key, bool pressed);
27 void game_mouse_button(int bn, bool state, int x, int y);
28 void game_mouse_motion(int x, int y);