oculus1

diff src/vr_impl.h @ 3:b069a5c27388

added a couple more stuff, fixed all the LibOVR line endings
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 15 Sep 2013 04:10:05 +0300
parents e2f9e4603129
children d797639e0234
line diff
     1.1 --- a/src/vr_impl.h	Sat Sep 14 17:51:03 2013 +0300
     1.2 +++ b/src/vr_impl.h	Sun Sep 15 04:10:05 2013 +0300
     1.3 @@ -5,17 +5,23 @@
     1.4  
     1.5  using namespace OVR;
     1.6  
     1.7 -struct VRData {
     1.8 +struct VRContext {
     1.9  	DeviceManager *ovr_devman;
    1.10  	HMDDevice *ovr_hmd_dev;
    1.11  	SensorDevice *ovr_sensor_dev;
    1.12 +	SensorFusion ovr_sfusion;
    1.13  
    1.14 -	float fov;
    1.15 -	float aspect;
    1.16 -	float ipd;
    1.17 -	float distort[4];
    1.18 +	struct {
    1.19 +		// the full width and height of the display (both eyes)
    1.20 +		int width, height;
    1.21 +		float fov;
    1.22 +		// the full aspect ratio of the display (both eyes)
    1.23 +		float aspect;
    1.24 +		float ipd;
    1.25 +		float distort[4];
    1.26 +	} info;
    1.27  };
    1.28  
    1.29 -extern VRData vr_data;
    1.30 +extern VRContext vr_ctx;
    1.31  
    1.32  #endif	// VR_IMPL_H_