projects
/
vrtris
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mesh dump routines
[vrtris]
/
src
/
game.c
diff --git
a/src/game.c
b/src/game.c
index
00f81cc
..
f2d888a
100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-7,10
+7,11
@@
#include "osd.h"
#include "opt.h"
#include "osd.h"
#include "opt.h"
+#define DEFSCR "game"
+
static void calc_framerate(void);
static void print_framerate(void);
static void calc_framerate(void);
static void print_framerate(void);
-static float view_matrix[16], proj_matrix[16];
static int should_swap;
static unsigned long framerate;
static int should_swap;
static unsigned long framerate;
@@
-37,6
+38,12
@@
int game_init(int argc, char **argv)
goatvr_startvr();
should_swap = goatvr_should_swap();
}
goatvr_startvr();
should_swap = goatvr_should_swap();
}
+
+ glEnable(GL_DEPTH_TEST);
+ glEnable(GL_CULL_FACE);
+ glEnable(GL_LIGHTING);
+ glEnable(GL_LIGHT0);
+
return 0;
}
return 0;
}