goat3dgfx
annotate 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 |
rev | line source |
---|---|
nuclear@11 | 1 #include "config.h" |
nuclear@12 | 2 #include "opengl.h" |
nuclear@11 | 3 #include "vr.h" |
nuclear@11 | 4 #include "logger.h" |
nuclear@10 | 5 |
nuclear@15 | 6 using namespace goatgfx; |
nuclear@15 | 7 |
nuclear@10 | 8 bool init_goat_graphics() |
nuclear@10 | 9 { |
nuclear@12 | 10 info_log("initializing goat3d graphics\n"); |
nuclear@10 | 11 |
nuclear@10 | 12 glewInit(); |
nuclear@10 | 13 |
nuclear@11 | 14 #ifdef USE_VR |
nuclear@12 | 15 if(vr_init(VR_INIT_OCULUS) == -1) { |
nuclear@12 | 16 fatal_log("failed to initialize the VR system\n"); |
nuclear@11 | 17 return false; |
nuclear@11 | 18 } |
nuclear@11 | 19 #endif |
nuclear@11 | 20 |
nuclear@10 | 21 return true; |
nuclear@10 | 22 } |
nuclear@10 | 23 |
nuclear@10 | 24 void shutdown_goat_graphics() |
nuclear@10 | 25 { |
nuclear@13 | 26 vr_shutdown(); |
nuclear@10 | 27 } |