conworlds

diff src/vr/vr_libovr.c @ 10:e3f0ca1d008a

added preliminary OpenHMD module
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 22 Aug 2014 20:11:15 +0300
parents c2eecf764daa
children 5dc4e2b8f6f5
line diff
     1.1 --- a/src/vr/vr_libovr.c	Fri Aug 22 18:48:25 2014 +0300
     1.2 +++ b/src/vr/vr_libovr.c	Fri Aug 22 20:11:15 2014 +0300
     1.3 @@ -104,16 +104,16 @@
     1.4  #endif
     1.5  
     1.6  	ovrHmd_AttachToWindow(hmd, win, 0, 0);
     1.7 -	//ovrHmd_SetEnabledCaps(hmd, ovrHmdCap_LowPersistence | ovrHmdCap_DynamicPrediction);
     1.8 +	/*ovrHmd_SetEnabledCaps(hmd, ovrHmdCap_LowPersistence | ovrHmdCap_DynamicPrediction);*/
     1.9  
    1.10 -	dcaps = ovrDistortionCap_Chromatic | ovrDistortionCap_Vignette;// | ovrDistortionCap_TimeWarp;// |
    1.11 -		//ovrDistortionCap_Overdrive;
    1.12 +	dcaps = ovrDistortionCap_Chromatic | ovrDistortionCap_Vignette;/* | ovrDistortionCap_TimeWarp;// |
    1.13 +		ovrDistortionCap_Overdrive; */
    1.14  
    1.15  	if(!ovrHmd_ConfigureRendering(hmd, &glcfg.Config, dcaps, eye_fov, eye_render_desc)) {
    1.16  		fprintf(stderr, "failed to configure LibOVR distortion renderer\n");
    1.17  	}
    1.18  
    1.19 -	//ovrhmd_EnableHSWDisplaySDKRender(hmd, 0);
    1.20 +	/* ovrhmd_EnableHSWDisplaySDKRender(hmd, 0); */
    1.21  }
    1.22  
    1.23  static void cleanup(void)