goat3dgfx

view src/goat3dgfx.cc @ 11:d061fe1a31ec

compile vr source files or not
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 24 Nov 2013 14:00:14 +0200
parents b4c9a24c946e
children 1868c5975f31
line source
1 #include "config.h"
2 #include "goat3dgfx.h"
3 #include "vr.h"
4 #include "logger.h"
6 bool init_goat_graphics()
7 {
8 log_info("initializing goat3d graphics\n");
10 glewInit();
12 #ifdef USE_VR
13 if(vr_init() == -1) {
14 log_fatal("failed to initialize the VR system\n");
15 return false;
16 }
17 #endif
19 return true;
20 }
22 void shutdown_goat_graphics()
23 {
24 }