conworlds

annotate src/vr/vr_libovr.c @ 4:e6948e131526

adding a vr wrapper
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 20 Aug 2014 06:33:43 +0300
parents
children 8b7da5ab814e
rev   line source
nuclear@4 1 #include "vr_impl.h"
nuclear@4 2
nuclear@4 3 static int init(void)
nuclear@4 4 {
nuclear@4 5 return -1;
nuclear@4 6 }
nuclear@4 7
nuclear@4 8 static void cleanup(void)
nuclear@4 9 {
nuclear@4 10 }
nuclear@4 11
nuclear@4 12 static void view_matrix(int eye, float *mat)
nuclear@4 13 {
nuclear@4 14 }
nuclear@4 15
nuclear@4 16 static void proj_matrix(int eye, float *mat)
nuclear@4 17 {
nuclear@4 18 }
nuclear@4 19
nuclear@4 20 static void draw(unsigned int fbtex, float u, float maxu, float v, float maxv)
nuclear@4 21 {
nuclear@4 22 }
nuclear@4 23
nuclear@4 24 struct vr_module *vr_module_libovr(void)
nuclear@4 25 {
nuclear@4 26 static struct vr_module m;
nuclear@4 27
nuclear@4 28 if(!m.init) {
nuclear@4 29 m.name = "libovr";
nuclear@4 30 m.init = init;
nuclear@4 31 m.cleanup = cleanup;
nuclear@4 32 m.view_matrix = view_matrix;
nuclear@4 33 m.proj_matrix = proj_matrix;
nuclear@4 34 m.draw = draw;
nuclear@4 35 }
nuclear@4 36 return &m;
nuclear@4 37 }