conworlds
annotate 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 |
rev | line source |
---|---|
nuclear@4 | 1 #ifndef VR_IMPL_H_ |
nuclear@4 | 2 #define VR_IMPL_H_ |
nuclear@4 | 3 |
nuclear@4 | 4 struct vr_module { |
nuclear@4 | 5 char *name; |
nuclear@4 | 6 |
nuclear@4 | 7 int (*init)(void); |
nuclear@4 | 8 void (*cleanup)(void); |
nuclear@4 | 9 |
nuclear@4 | 10 void (*view_matrix)(int eye, float *mat); |
nuclear@4 | 11 void (*proj_matrix)(int eye, float *mat); |
nuclear@4 | 12 |
nuclear@4 | 13 void (*draw)(unsigned int fbtex, float u, float maxu, float v, float maxv); |
nuclear@4 | 14 }; |
nuclear@4 | 15 |
nuclear@4 | 16 void vr_init_modules(void); |
nuclear@4 | 17 |
nuclear@4 | 18 void vr_clear_modules(void); |
nuclear@4 | 19 void vr_register_module(struct vr_module *mod); |
nuclear@4 | 20 |
nuclear@4 | 21 int vr_get_num_modules(void); |
nuclear@4 | 22 struct vr_module *vr_get_module(int idx); |
nuclear@4 | 23 |
nuclear@4 | 24 void vr_activate_module(int idx); |
nuclear@4 | 25 |
nuclear@4 | 26 int vr_get_num_active_modules(void); |
nuclear@4 | 27 struct vr_module *vr_get_active_module(int idx); |
nuclear@4 | 28 |
nuclear@4 | 29 #endif /* VR_IMPL_H_ */ |