goat3dgfx

view src/goat3dgfx.cc @ 13:25bf39105c82

lalal
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 27 Nov 2013 08:08:59 +0200
parents 1868c5975f31
children 7d6b667821cf
line source
1 #include "config.h"
2 #include "opengl.h"
3 #include "vr.h"
4 #include "logger.h"
6 bool init_goat_graphics()
7 {
8 info_log("initializing goat3d graphics\n");
10 glewInit();
12 #ifdef USE_VR
13 if(vr_init(VR_INIT_OCULUS) == -1) {
14 fatal_log("failed to initialize the VR system\n");
15 return false;
16 }
17 #endif
19 return true;
20 }
22 void shutdown_goat_graphics()
23 {
24 vr_shutdown();
25 }