libgoatvr

diff src/vr_openhmd.c @ 12:b536bd21b37f

added vr_get_def functions
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 24 Sep 2014 23:50:40 +0300
parents 3d9ec6fe97d7
children 27fcd4c2969d
line diff
     1.1 --- a/src/vr_openhmd.c	Wed Sep 24 10:18:42 2014 +0300
     1.2 +++ b/src/vr_openhmd.c	Wed Sep 24 23:50:40 2014 +0300
     1.3 @@ -60,14 +60,14 @@
     1.4  	ipd /= 100.0f; /* convert ipd to meters */
     1.5  
     1.6  	if((optdb = create_options())) {
     1.7 -		set_option_int(optdb, VR_OPT_DISPLAY_WIDTH, disp_width);
     1.8 -		set_option_int(optdb, VR_OPT_DISPLAY_HEIGHT, disp_height);
     1.9 -		set_option_float(optdb, VR_OPT_IPD, ipd);
    1.10 +		set_option_int(optdb, VR_DISPLAY_WIDTH, disp_width);
    1.11 +		set_option_int(optdb, VR_DISPLAY_HEIGHT, disp_height);
    1.12 +		set_option_float(optdb, VR_IPD, ipd);
    1.13  
    1.14 -		set_option_int(optdb, VR_OPT_LEYE_XRES, (int)(disp_width / 2.0 * FB_EMBIGGEN));
    1.15 -		set_option_int(optdb, VR_OPT_LEYE_YRES, (int)(disp_height * FB_EMBIGGEN));
    1.16 -		set_option_int(optdb, VR_OPT_REYE_XRES, (int)(disp_width / 2.0 * FB_EMBIGGEN));
    1.17 -		set_option_int(optdb, VR_OPT_REYE_YRES, (int)(disp_height * FB_EMBIGGEN));
    1.18 +		set_option_int(optdb, VR_LEYE_XRES, (int)(disp_width / 2.0 * FB_EMBIGGEN));
    1.19 +		set_option_int(optdb, VR_LEYE_YRES, (int)(disp_height * FB_EMBIGGEN));
    1.20 +		set_option_int(optdb, VR_REYE_XRES, (int)(disp_width / 2.0 * FB_EMBIGGEN));
    1.21 +		set_option_int(optdb, VR_REYE_YRES, (int)(disp_height * FB_EMBIGGEN));
    1.22  	}
    1.23  
    1.24  	ohmd_device_getf(dev, OHMD_DISTORTION_K, distort_k);