goat3dgfx

annotate src/goat3dgfx.cc @ 11:d061fe1a31ec

compile vr source files or not
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 24 Nov 2013 14:00:14 +0200
parents b4c9a24c946e
children 1868c5975f31
rev   line source
nuclear@11 1 #include "config.h"
nuclear@10 2 #include "goat3dgfx.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@10 8 log_info("initializing goat3d graphics\n");
nuclear@10 9
nuclear@10 10 glewInit();
nuclear@10 11
nuclear@11 12 #ifdef USE_VR
nuclear@11 13 if(vr_init() == -1) {
nuclear@11 14 log_fatal("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@10 24 }