goat3dgfx
view src/goat3dgfx.cc @ 34:3eb6c8f89fe1
merge
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 02 Mar 2014 17:41:10 +0200 |
parents | 25bf39105c82 |
children |
line source
1 #include "config.h"
2 #include "opengl.h"
3 #include "vr.h"
4 #include "logger.h"
6 using namespace goatgfx;
8 bool init_goat_graphics()
9 {
10 info_log("initializing goat3d graphics\n");
12 glewInit();
14 #ifdef USE_VR
15 if(vr_init(VR_INIT_OCULUS) == -1) {
16 fatal_log("failed to initialize the VR system\n");
17 return false;
18 }
19 #endif
21 return true;
22 }
24 void shutdown_goat_graphics()
25 {
26 vr_shutdown();
27 }