conworlds
annotate src/vr/vr_null.c @ 6:3c36bc28c6c2
more stuff in the vr test
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 21 Aug 2014 01:08:03 +0300 |
parents | e6948e131526 |
children | bd8202d6d28d |
rev | line source |
---|---|
nuclear@4 | 1 #ifdef WIN32 |
nuclear@4 | 2 #define WIN32_LEAN_AND_MEAN |
nuclear@4 | 3 #include <windows.h> |
nuclear@4 | 4 #endif |
nuclear@4 | 5 |
nuclear@4 | 6 #ifdef __APPLE__ |
nuclear@4 | 7 #include <OpenGL/gl.h> |
nuclear@4 | 8 #else |
nuclear@4 | 9 #include <GL/gl.h> |
nuclear@4 | 10 #endif |
nuclear@4 | 11 |
nuclear@4 | 12 #include "vr_impl.h" |
nuclear@4 | 13 |
nuclear@4 | 14 static int init(void) |
nuclear@4 | 15 { |
nuclear@4 | 16 return 0; |
nuclear@4 | 17 } |
nuclear@4 | 18 |
nuclear@4 | 19 struct vr_module *vr_module_null(void) |
nuclear@4 | 20 { |
nuclear@4 | 21 static struct vr_module m; |
nuclear@4 | 22 |
nuclear@4 | 23 if(!m.init) { |
nuclear@4 | 24 m.name = "null"; |
nuclear@4 | 25 m.init = init; |
nuclear@4 | 26 } |
nuclear@4 | 27 return &m; |
nuclear@4 | 28 } |