6 static void cleanup(void);
7 static void start(void);
8 static void stop(void);
9 static void update(float dt);
10 static void draw(void);
11 static void reshape(int x, int y);
12 static void keyboard(int key, int pressed);
13 static void mouse(int bn, int pressed, int x, int y);
14 static void motion(int x, int y);
15 static void wheel(int dir);
17 struct game_screen game_screen = {
34 static struct cmesh *blkmesh;
38 if(!(blkmesh = cmesh_alloc())) {
41 if(cmesh_load(blkmesh, "data/noisecube.obj") == -1) {
42 fprintf(stderr, "failed to load block model\n");
48 static void cleanup(void)
53 static void start(void)
57 static void stop(void)
61 static void update(float dt)
65 static void draw(void)
67 glTranslatef(0, 0, 6);
72 static void reshape(int x, int y)
76 static void keyboard(int key, int pressed)
80 static void mouse(int bn, int pressed, int x, int y)
84 static void motion(int x, int y)
88 static void wheel(int dir)