vrchess

view 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
line source
1 #include "vr_impl.h"
3 static int init(void)
4 {
5 return -1;
6 }
8 static void cleanup(void)
9 {
10 }
12 static void view_matrix(int eye, float *mat)
13 {
14 }
16 static void proj_matrix(int eye, float *mat)
17 {
18 }
20 static void draw(unsigned int fbtex, float u, float maxu, float v, float maxv)
21 {
22 }
24 struct vr_module *vr_module_libovr(void)
25 {
26 static struct vr_module m;
28 if(!m.init) {
29 m.name = "libovr";
30 m.init = init;
31 m.cleanup = cleanup;
32 m.view_matrix = view_matrix;
33 m.proj_matrix = proj_matrix;
34 m.draw = draw;
35 }
36 return &m;
37 }