goat3dgfx

annotate src/goat3dgfx.cc @ 12:1868c5975f31

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 24 Nov 2013 18:18:38 +0200
parents d061fe1a31ec
children 25bf39105c82
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@10 24 }