libgoatvr
diff src/vr_libovr.c @ 16:b2d902fff68d
renamed VR_EYE_RES_SCALE to VR_RENDER_RES_SCALE
added convenience options: VR_RENDER_XRES & VR_RENDER_YRES, which are derived
from VR_LEYE_XRES, VR_REYE_XRES, etc.
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 25 Sep 2014 09:06:57 +0300 |
parents | 27fcd4c2969d |
children | 437fe32ac633 |
line diff
1.1 --- a/src/vr_libovr.c Thu Sep 25 08:50:50 2014 +0300 1.2 +++ b/src/vr_libovr.c Thu Sep 25 09:06:57 2014 +0300 1.3 @@ -91,7 +91,7 @@ 1.4 set_option_int(optdb, VR_LEYE_YRES, eye_res[0].h); 1.5 set_option_int(optdb, VR_REYE_XRES, eye_res[1].w); 1.6 set_option_int(optdb, VR_REYE_YRES, eye_res[1].h); 1.7 - set_option_float(optdb, VR_EYE_RES_SCALE, 1.0); 1.8 + set_option_float(optdb, VR_RENDER_RES_SCALE, 1.0); 1.9 set_option_float(optdb, VR_EYE_HEIGHT, ovrHmd_GetFloat(hmd, OVR_KEY_EYE_HEIGHT, OVR_DEFAULT_EYE_HEIGHT)); 1.10 set_option_float(optdb, VR_IPD, ovrHmd_GetFloat(hmd, OVR_KEY_IPD, OVR_DEFAULT_IPD)); 1.11 set_option_int(optdb, VR_WIN_XOFFS, hmd->WindowsPos.x); 1.12 @@ -167,7 +167,7 @@ 1.13 break; 1.14 } 1.15 1.16 - if(hmd && strcmp(opt, VR_EYE_RES_SCALE) == 0) { 1.17 + if(hmd && strcmp(opt, VR_RENDER_RES_SCALE) == 0) { 1.18 eye_res[0] = ovrHmd_GetFovTextureSize(hmd, ovrEye_Left, eye_fov[0], fval); 1.19 eye_res[1] = ovrHmd_GetFovTextureSize(hmd, ovrEye_Right, eye_fov[1], fval); 1.20