goat3dgfx
annotate 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 |
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@10 | 6 bool init_goat_graphics() |
nuclear@10 | 7 { |
nuclear@12 | 8 info_log("initializing goat3d graphics\n"); |
nuclear@10 | 9 |
nuclear@10 | 10 glewInit(); |
nuclear@10 | 11 |
nuclear@11 | 12 #ifdef USE_VR |
nuclear@12 | 13 if(vr_init(VR_INIT_OCULUS) == -1) { |
nuclear@12 | 14 fatal_log("failed to initialize the VR system\n"); |
nuclear@11 | 15 return false; |
nuclear@11 | 16 } |
nuclear@11 | 17 #endif |
nuclear@11 | 18 |
nuclear@10 | 19 return true; |
nuclear@10 | 20 } |
nuclear@10 | 21 |
nuclear@10 | 22 void shutdown_goat_graphics() |
nuclear@10 | 23 { |
nuclear@13 | 24 vr_shutdown(); |
nuclear@10 | 25 } |