conworlds

view src/vr/vr_impl.h @ 5:8b7da5ab814e

vr wrapper in progress
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 20 Aug 2014 16:34:43 +0300
parents e6948e131526
children bd8202d6d28d
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 (*begin)(int eye);
14 void (*end)(void);
15 void (*present)(void);
16 };
18 void vr_init_modules(void);
20 void vr_clear_modules(void);
21 void vr_register_module(struct vr_module *mod);
23 int vr_get_num_modules(void);
24 struct vr_module *vr_get_module(int idx);
26 void vr_activate_module(int idx);
28 int vr_get_num_active_modules(void);
29 struct vr_module *vr_get_active_module(int idx);
31 #endif /* VR_IMPL_H_ */