conworlds
diff src/vr/vr_impl.h @ 7:bd8202d6d28d
some progress...
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 22 Aug 2014 16:55:16 +0300 |
parents | 8b7da5ab814e |
children | 90abf4b93cc9 |
line diff
1.1 --- a/src/vr/vr_impl.h Thu Aug 21 01:08:03 2014 +0300 1.2 +++ b/src/vr/vr_impl.h Fri Aug 22 16:55:16 2014 +0300 1.3 @@ -1,18 +1,30 @@ 1.4 #ifndef VR_IMPL_H_ 1.5 #define VR_IMPL_H_ 1.6 1.7 +#include "vr.h" 1.8 +#include "opt.h" 1.9 + 1.10 struct vr_module { 1.11 char *name; 1.12 1.13 int (*init)(void); 1.14 void (*cleanup)(void); 1.15 1.16 - void (*view_matrix)(int eye, float *mat); 1.17 - void (*proj_matrix)(int eye, float *mat); 1.18 + int (*set_option)(const char *opt, enum opt_type type, void *valp); 1.19 + int (*get_option)(const char *opt, enum opt_type type, void *valp); 1.20 + 1.21 + void (*translation)(int eye, float *vec); 1.22 + void (*rotation)(int eye, float *quat); 1.23 + 1.24 + void (*proj_matrix)(int eye, float znear, float zfar, float *mat); 1.25 1.26 void (*begin)(int eye); 1.27 void (*end)(void); 1.28 void (*present)(void); 1.29 + 1.30 + void (*set_eye_texture)(int eye, unsigned int tex, float umin, float vmin, float umax, float vmax); 1.31 + 1.32 + void (*recenter)(void); 1.33 }; 1.34 1.35 void vr_init_modules(void);