oculus1

view libovr/Src/OVR_HIDDeviceBase.h @ 29:9a973ef0e2a3

fixed the performance issue under MacOSX by replacing glutSolidTeapot (which uses glEvalMesh) with my own teapot generator.
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 27 Oct 2013 06:31:18 +0200
parents
children
line source
1 /************************************************************************************
3 PublicHeader: OVR.h
4 Filename : OVR_HIDDeviceBase.h
5 Content : Definition of HID device interface.
6 Created : March 11, 2013
7 Authors : Lee Cooper
9 Copyright : Copyright 2013 Oculus VR, Inc. All Rights reserved.
11 Use of this software is subject to the terms of the Oculus license
12 agreement provided at the time of installation or download, or which
13 otherwise accompanies this software in either electronic or hard copy form.
15 *************************************************************************************/
17 #ifndef OVR_HIDDeviceBase_h
18 #define OVR_HIDDeviceBase_h
20 #include "Kernel/OVR_Types.h"
22 namespace OVR {
24 //-------------------------------------------------------------------------------------
25 // ***** HIDDeviceBase
27 // Base interface for HID devices.
28 class HIDDeviceBase
29 {
30 public:
32 virtual ~HIDDeviceBase() { }
34 virtual bool SetFeatureReport(UByte* data, UInt32 length) = 0;
35 virtual bool GetFeatureReport(UByte* data, UInt32 length) = 0;
36 };
38 } // namespace OVR
40 #endif