From f28388ff2af14b56ef2d973b2f4f9da021716d4c Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Fri, 10 Jan 2014 18:02:40 -0800 Subject: Updating to 0.2.5c --- LibOVR/Src/OVR_OSX_HMDDevice.h | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'LibOVR/Src/OVR_OSX_HMDDevice.h') diff --git a/LibOVR/Src/OVR_OSX_HMDDevice.h b/LibOVR/Src/OVR_OSX_HMDDevice.h index 52b8471..d92aa1f 100644 --- a/LibOVR/Src/OVR_OSX_HMDDevice.h +++ b/LibOVR/Src/OVR_OSX_HMDDevice.h @@ -5,12 +5,23 @@ Content : OSX HMDDevice implementation Created : September 21, 2012 Authors : Michael Antonov -Copyright : Copyright 2012 Oculus VR, Inc. All Rights reserved. +Copyright : Copyright 2013 Oculus VR, Inc. All Rights reserved. -Use of this software is subject to the terms of the Oculus license -agreement provided at the time of installation or download, or which +Licensed under the Oculus VR SDK License Version 2.0 (the "License"); +you may not use the Oculus VR SDK except in compliance with the License, +which is provided at the time of installation or download, or which otherwise accompanies this software in either electronic or hard copy form. +You may obtain a copy of the License at + +http://www.oculusvr.com/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, the Oculus VR SDK +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + *************************************************************************************/ #ifndef OVR_OSX_HMDDevice_h @@ -96,8 +107,10 @@ public: Contents |= Contents_Screen; } - void SetDistortion(const float* dks) + void SetDistortion(float eye2screen, const float* dks) { + EyeToScreenDistance = eye2screen; + for (int i = 0; i < 4; i++) DistortionK[i] = dks[i]; Contents |= Contents_Distortion; @@ -116,6 +129,7 @@ protected: float HScreenSize, VScreenSize; long DisplayId; float DistortionK[4]; + float EyeToScreenDistance; }; -- cgit v1.2.3