goat3dgfx
view src/goat3dgfx.cc @ 21:7c593721547f
integrated support for the multiple animation system of libanim
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 27 Dec 2013 11:59:32 +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 }