vrchess

view src/vr/vr_impl.h @ 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 #ifndef VR_IMPL_H_
2 #define VR_IMPL_H_
4 struct vr_module {
5 char *name;
7 int (*init)(void);
8 void (*cleanup)(void);
10 void (*view_matrix)(int eye, float *mat);
11 void (*proj_matrix)(int eye, float *mat);
13 void (*draw)(unsigned int fbtex, float u, float maxu, float v, float maxv);
14 };
16 void vr_init_modules(void);
18 void vr_clear_modules(void);
19 void vr_register_module(struct vr_module *mod);
21 int vr_get_num_modules(void);
22 struct vr_module *vr_get_module(int idx);
24 void vr_activate_module(int idx);
26 int vr_get_num_active_modules(void);
27 struct vr_module *vr_get_active_module(int idx);
29 #endif /* VR_IMPL_H_ */