1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
/************************************************************************************
PublicHeader: OVR.h
Filename : OVR_DeviceConstants.h
Content : Device constants
Created : February 5, 2013
Authors : Lee Cooper
Copyright : Copyright 2014 Oculus VR, Inc. All Rights reserved.
Licensed under the Oculus VR Rift SDK License Version 3.1 (the "License");
you may not use the Oculus VR Rift 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-3.1
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_DeviceConstants_h
#define OVR_DeviceConstants_h
namespace OVR {
//-------------------------------------------------------------------------------------
// Different device types supported by OVR; this type is reported by DeviceBase::GetType.
//
enum DeviceType
{
Device_None = 0,
Device_Manager = 1,
Device_HMD = 2,
Device_Sensor = 3,
Device_LatencyTester = 4,
Device_BootLoader = 5,
Device_Camera = 6,
Device_Display = 7,
Device_All = 0xFF // Set for enumeration only, to enumerate all device types.
};
//-------------------------------------------------------------------------------------
// Different lens distortion types supported by devices.
//
enum DistortionEqnType
{
Distortion_No_Override = -1,
// These two are leagcy and deprecated.
Distortion_Poly4 = 0, // scale = (K0 + K1*r^2 + K2*r^4 + K3*r^6)
Distortion_RecipPoly4 = 1, // scale = 1/(K0 + K1*r^2 + K2*r^4 + K3*r^6)
// CatmullRom10 is the preferred distortion format.
Distortion_CatmullRom10 = 2, // scale = Catmull-Rom spline through points (1.0, K[1]...K[9])
Distortion_LAST // For ease of enumeration.
};
//-------------------------------------------------------------------------------------
// HMD types.
//
enum HmdTypeEnum
{
HmdType_None,
HmdType_DKProto, // First duct-tape model, never sold.
HmdType_DK1, // DevKit1 - on sale to developers.
HmdType_DKHDProto, // DKHD - shown at various shows, never sold.
HmdType_DKHD2Proto, // DKHD2, 5.85-inch panel, never sold.
HmdType_DKHDProto566Mi, // DKHD, 5.66-inch panel, never sold.
HmdType_CrystalCoveProto, // Crystal Cove, 5.66-inch panel, shown at shows but never sold.
HmdType_DK2,
// Reminder - this header file is public - codenames only!
HmdType_Unknown, // Used for unnamed HW lab experiments.
HmdType_LAST
};
//-------------------------------------------------------------------------------------
// HMD shutter types.
//
enum HmdShutterTypeEnum
{
HmdShutter_Global,
HmdShutter_RollingTopToBottom,
HmdShutter_RollingLeftToRight,
HmdShutter_RollingRightToLeft,
// TODO:
// color-sequential e.g. LCOS?
// alternate eyes?
// alternate columns?
// outside-in?
HmdShutter_LAST
};
//-------------------------------------------------------------------------------------
// For headsets that use eye cups
//
enum EyeCupType
{
// Public lenses
EyeCup_DK1A = 0,
EyeCup_DK1B = 1,
EyeCup_DK1C = 2,
EyeCup_DK2A = 3,
// Internal R&D codenames.
// Reminder - this header file is public - codenames only!
EyeCup_DKHD2A,
EyeCup_OrangeA,
EyeCup_RedA,
EyeCup_PinkA,
EyeCup_BlueA,
EyeCup_Delilah1A,
EyeCup_Delilah2A,
EyeCup_JamesA,
EyeCup_SunMandalaA,
EyeCup_LAST
};
} // namespace OVR
#endif
|