goat3dgfx

view src/goat3dgfx.cc @ 27:be9754def417

added missing post-build copy event in the release configuration
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 27 Feb 2014 02:19:16 +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 }