libgoatvr
diff src/vr.h @ 19:437fe32ac633
ops... wasn't handling the stereo eye separation correctly.
also fixed a bug in vr_libovr.c causing an assertion inside LibOVR when ovrHmd_GetEyePose was called as a result of calls to view_rotation or view_translation outside of vr_begin/vr_end
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 04 Oct 2014 03:39:14 +0300 |
parents | 1067274dc780 |
children | 7eea82cea9d2 |
line diff
1.1 --- a/src/vr.h Fri Oct 03 23:07:27 2014 +0300 1.2 +++ b/src/vr.h Sat Oct 04 03:39:14 2014 +0300 1.3 @@ -16,6 +16,8 @@ 1.4 /* unit: meters */ 1.5 #define VR_EYE_HEIGHT "eye-height" 1.6 #define VR_IPD "ipd" 1.7 +#define VR_LEYE_OFFSET "left-eye-offset" /* stereo offset from center of the head */ 1.8 +#define VR_REYE_OFFSET "right-eye-offset" /* stereo offset from center of the head */ 1.9 /* misc options */ 1.10 #define VR_NULL_STEREO "null-stereo" /* bool, default 0 */ 1.11 1.12 @@ -41,6 +43,7 @@ 1.13 void vr_setf(const char *optname, float val); 1.14 int vr_geti(const char *optname); 1.15 float vr_getf(const char *optname); 1.16 +float *vr_getfv(const char *optname, float *res); 1.17 /* variants of the get functions, with an additional "default value" 1.18 * argument, which is returned if the requested option is missing 1.19 */