ovr_sdk

view LibOVR/Src/Util/Util_LatencyTest2Reader.h @ 0:1b39a1b46319

initial 0.4.4
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 14 Jan 2015 06:51:16 +0200
parents
children
line source
1 /************************************************************************************
3 Filename : Util_LatencyTest2Reader.h
4 Content : Shared functionality for the DK2 latency tester
5 Created : July 8, 2014
6 Authors : Volga Aksoy, Chris Taylor
8 Copyright : Copyright 2014 Oculus VR, LLC All Rights reserved.
10 Licensed under the Oculus VR Rift SDK License Version 3.2 (the "License");
11 you may not use the Oculus VR Rift SDK except in compliance with the License,
12 which is provided at the time of installation or download, or which
13 otherwise accompanies this software in either electronic or hard copy form.
15 You may obtain a copy of the License at
17 http://www.oculusvr.com/licenses/LICENSE-3.2
19 Unless required by applicable law or agreed to in writing, the Oculus VR SDK
20 distributed under the License is distributed on an "AS IS" BASIS,
21 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 See the License for the specific language governing permissions and
23 limitations under the License.
25 *************************************************************************************/
27 #ifndef OVR_Util_LatencyTest2Reader_h
28 #define OVR_Util_LatencyTest2Reader_h
30 #include "../Tracking/Tracking_SensorState.h"
31 #include "Util_LatencyTest2State.h"
33 namespace OVR { namespace Util {
36 //-----------------------------------------------------------------------------
37 // RecordStateReader
39 // User interface to retrieve pose from the sensor fusion subsystem
40 class RecordStateReader : public NewOverrideBase
41 {
42 protected:
43 const Tracking::CombinedSharedStateUpdater* Updater;
45 public:
46 RecordStateReader()
47 : Updater(NULL)
48 {
49 }
51 // Initialize the updater
52 void SetUpdater(const Tracking::CombinedSharedStateUpdater *updater)
53 {
54 Updater = updater;
55 }
57 void GetRecordSet(FrameTimeRecordSet& recordset);
58 };
61 }} // namespace OVR::Util
63 #endif // OVR_Util_LatencyTest2Reader_h