Skip to content

Commit 822f275

Browse files
committed
Initial Commit
0 parents  commit 822f275

35 files changed

+5962
-0
lines changed

.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Binaries
2+
/Debug
3+
/Release
4+
5+
# Object files
6+
/OpenOVR/Debug
7+
/OpenOVR/Release
8+
9+
# Visual Studio
10+
/.vs
11+
12+
# LibOVR
13+
/libovr/OculusSDK
14+

LICENSE.txt

+674
Large diffs are not rendered by default.

LICENSE_OPENVR.txt

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (c) 2015, Valve Corporation
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification,
5+
are permitted provided that the following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
10+
2. Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation and/or
12+
other materials provided with the distribution.
13+
14+
3. Neither the name of the copyright holder nor the names of its contributors
15+
may be used to endorse or promote products derived from this software without
16+
specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
22+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

OpenOVR.sln

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27004.2009
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OpenOVR", "OpenOVR\OpenOVR.vcxproj", "{763555EE-FA66-4DFF-91F9-F0CD194B780F}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|x64 = Debug|x64
11+
Debug|x86 = Debug|x86
12+
Release|x64 = Release|x64
13+
Release|x86 = Release|x86
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{763555EE-FA66-4DFF-91F9-F0CD194B780F}.Debug|x64.ActiveCfg = Debug|x64
17+
{763555EE-FA66-4DFF-91F9-F0CD194B780F}.Debug|x64.Build.0 = Debug|x64
18+
{763555EE-FA66-4DFF-91F9-F0CD194B780F}.Debug|x86.ActiveCfg = Debug|Win32
19+
{763555EE-FA66-4DFF-91F9-F0CD194B780F}.Debug|x86.Build.0 = Debug|Win32
20+
{763555EE-FA66-4DFF-91F9-F0CD194B780F}.Release|x64.ActiveCfg = Release|x64
21+
{763555EE-FA66-4DFF-91F9-F0CD194B780F}.Release|x64.Build.0 = Release|x64
22+
{763555EE-FA66-4DFF-91F9-F0CD194B780F}.Release|x86.ActiveCfg = Release|Win32
23+
{763555EE-FA66-4DFF-91F9-F0CD194B780F}.Release|x86.Build.0 = Release|Win32
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
GlobalSection(ExtensibilityGlobals) = postSolution
29+
SolutionGuid = {D74F8079-4A2D-41E7-B42A-B81DDA189AC3}
30+
EndGlobalSection
31+
EndGlobal

OpenOVR/ImplAccess.h

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#pragma once
2+
3+
#include "Reimpl/CVRSystem.h"
4+
#include "Reimpl/CVRRenderModels.h"
5+
#include "Reimpl/CVRCompositor.h"
6+
7+
struct CVRImplAccess_ {
8+
CVRSystem *vr_System;
9+
CVRRenderModels *vr_RenderModels;
10+
CVRCompositor *vr_Compositor;
11+
};
12+
13+
extern CVRImplAccess_ CVRImplAccess;

OpenOVR/OpenOVR.cpp

212 Bytes
Binary file not shown.

OpenOVR/OpenOVR.vcxproj

+201
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Debug|x64">
13+
<Configuration>Debug</Configuration>
14+
<Platform>x64</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
</ItemGroup>
21+
<PropertyGroup Label="Globals">
22+
<VCProjectVersion>15.0</VCProjectVersion>
23+
<ProjectGuid>{763555EE-FA66-4DFF-91F9-F0CD194B780F}</ProjectGuid>
24+
<Keyword>Win32Proj</Keyword>
25+
<RootNamespace>OpenOVR</RootNamespace>
26+
<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
27+
</PropertyGroup>
28+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
29+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
30+
<ConfigurationType>DynamicLibrary</ConfigurationType>
31+
<UseDebugLibraries>true</UseDebugLibraries>
32+
<PlatformToolset>v141</PlatformToolset>
33+
<CharacterSet>Unicode</CharacterSet>
34+
</PropertyGroup>
35+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
36+
<ConfigurationType>DynamicLibrary</ConfigurationType>
37+
<UseDebugLibraries>false</UseDebugLibraries>
38+
<PlatformToolset>v141</PlatformToolset>
39+
<WholeProgramOptimization>true</WholeProgramOptimization>
40+
<CharacterSet>Unicode</CharacterSet>
41+
</PropertyGroup>
42+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
43+
<ConfigurationType>DynamicLibrary</ConfigurationType>
44+
<UseDebugLibraries>true</UseDebugLibraries>
45+
<PlatformToolset>v141</PlatformToolset>
46+
<CharacterSet>Unicode</CharacterSet>
47+
</PropertyGroup>
48+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
49+
<ConfigurationType>DynamicLibrary</ConfigurationType>
50+
<UseDebugLibraries>false</UseDebugLibraries>
51+
<PlatformToolset>v141</PlatformToolset>
52+
<WholeProgramOptimization>true</WholeProgramOptimization>
53+
<CharacterSet>Unicode</CharacterSet>
54+
</PropertyGroup>
55+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
56+
<ImportGroup Label="ExtensionSettings">
57+
</ImportGroup>
58+
<ImportGroup Label="Shared">
59+
</ImportGroup>
60+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
61+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
62+
</ImportGroup>
63+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
64+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
65+
</ImportGroup>
66+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
67+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
68+
</ImportGroup>
69+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
70+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
71+
</ImportGroup>
72+
<PropertyGroup Label="UserMacros" />
73+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
74+
<LinkIncremental>true</LinkIncremental>
75+
<TargetName>openvr_api</TargetName>
76+
</PropertyGroup>
77+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
78+
<LinkIncremental>true</LinkIncremental>
79+
</PropertyGroup>
80+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
81+
<LinkIncremental>false</LinkIncremental>
82+
<TargetName>openvr_api</TargetName>
83+
</PropertyGroup>
84+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
85+
<LinkIncremental>false</LinkIncremental>
86+
</PropertyGroup>
87+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
88+
<ClCompile>
89+
<PrecompiledHeader>Use</PrecompiledHeader>
90+
<WarningLevel>Level3</WarningLevel>
91+
<Optimization>Disabled</Optimization>
92+
<SDLCheck>true</SDLCheck>
93+
<PreprocessorDefinitions>WIN32;_DEBUG;OPENOVR_EXPORTS;_WINDOWS;_USRDLL;SUPPORT_GL;SUPPORT_DX;SUPPORT_VK;%(PreprocessorDefinitions)</PreprocessorDefinitions>
94+
<AdditionalIncludeDirectories>..\libovr\OculusSDK\LibOVR\Include;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
95+
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
96+
</ClCompile>
97+
<Link>
98+
<SubSystem>Windows</SubSystem>
99+
<GenerateDebugInformation>true</GenerateDebugInformation>
100+
<AdditionalDependencies>../libovr/OculusSDK/LibOVR/Lib/Windows/$(Platform)/$(Configuration)/VS2015/LibOVR.lib;../libovr/OculusSDK/LibOVRKernel/Lib/Windows/$(Platform)/$(Configuration)/VS2015/LibOVRKernel.lib;opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
101+
<AdditionalLibraryDirectories>
102+
</AdditionalLibraryDirectories>
103+
</Link>
104+
<PostBuildEvent>
105+
<Command>copy "..\Debug\openvr_api.dll" "..\..\openvr-master\samples\bin\win32\openvr_api.dll"</Command>
106+
</PostBuildEvent>
107+
</ItemDefinitionGroup>
108+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
109+
<ClCompile>
110+
<PrecompiledHeader>Use</PrecompiledHeader>
111+
<WarningLevel>Level3</WarningLevel>
112+
<Optimization>Disabled</Optimization>
113+
<SDLCheck>true</SDLCheck>
114+
<PreprocessorDefinitions>_DEBUG;OPENOVR_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
115+
</ClCompile>
116+
<Link>
117+
<SubSystem>Windows</SubSystem>
118+
<GenerateDebugInformation>true</GenerateDebugInformation>
119+
</Link>
120+
</ItemDefinitionGroup>
121+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
122+
<ClCompile>
123+
<PrecompiledHeader>Use</PrecompiledHeader>
124+
<WarningLevel>Level3</WarningLevel>
125+
<Optimization>MaxSpeed</Optimization>
126+
<FunctionLevelLinking>true</FunctionLevelLinking>
127+
<IntrinsicFunctions>true</IntrinsicFunctions>
128+
<SDLCheck>true</SDLCheck>
129+
<PreprocessorDefinitions>WIN32;NDEBUG;OPENOVR_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
130+
<AdditionalIncludeDirectories>..\libovr\OculusSDK\LibOVR\Include;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
131+
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
132+
</ClCompile>
133+
<Link>
134+
<SubSystem>Windows</SubSystem>
135+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
136+
<OptimizeReferences>true</OptimizeReferences>
137+
<GenerateDebugInformation>true</GenerateDebugInformation>
138+
<AdditionalDependencies>../libovr/OculusSDK/LibOVR/Lib/Windows/$(Platform)/$(Configuration)/VS2015/LibOVR.lib;../libovr/OculusSDK/LibOVRKernel/Lib/Windows/$(Platform)/$(Configuration)/VS2015/LibOVRKernel.lib;opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
139+
<AdditionalLibraryDirectories>
140+
</AdditionalLibraryDirectories>
141+
</Link>
142+
<PostBuildEvent>
143+
<Command>copy "..\Debug\openvr_api.dll" "..\..\openvr-master\samples\bin\win32\openvr_api.dll"</Command>
144+
</PostBuildEvent>
145+
</ItemDefinitionGroup>
146+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
147+
<ClCompile>
148+
<PrecompiledHeader>Use</PrecompiledHeader>
149+
<WarningLevel>Level3</WarningLevel>
150+
<Optimization>MaxSpeed</Optimization>
151+
<FunctionLevelLinking>true</FunctionLevelLinking>
152+
<IntrinsicFunctions>true</IntrinsicFunctions>
153+
<SDLCheck>true</SDLCheck>
154+
<PreprocessorDefinitions>NDEBUG;OPENOVR_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
155+
</ClCompile>
156+
<Link>
157+
<SubSystem>Windows</SubSystem>
158+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
159+
<OptimizeReferences>true</OptimizeReferences>
160+
<GenerateDebugInformation>true</GenerateDebugInformation>
161+
</Link>
162+
</ItemDefinitionGroup>
163+
<ItemGroup>
164+
<ClInclude Include="convert.h" />
165+
<ClInclude Include="ImplAccess.h" />
166+
<ClInclude Include="libovr_wrapper.h" />
167+
<ClInclude Include="OpenVR\ivrapplications.h" />
168+
<ClInclude Include="OpenVR\ivrchaperone.h" />
169+
<ClInclude Include="OpenVR\ivrcompositor.h" />
170+
<ClInclude Include="OpenVR\ivrrendermodels.h" />
171+
<ClInclude Include="OpenVR\ivrsettings.h" />
172+
<ClInclude Include="OpenVR\ivrsystem.h" />
173+
<ClInclude Include="OpenVR\openvr.h" />
174+
<ClInclude Include="OpenVR\vrannotation.h" />
175+
<ClInclude Include="OpenVR\vrtypes.h" />
176+
<ClInclude Include="Reimpl\CVRCompositor.h" />
177+
<ClInclude Include="Reimpl\CVRRenderModels.h" />
178+
<ClInclude Include="Reimpl\CVRSystem.h" />
179+
<ClInclude Include="stdafx.h" />
180+
<ClInclude Include="steamvr_abi.h" />
181+
<ClInclude Include="targetver.h" />
182+
</ItemGroup>
183+
<ItemGroup>
184+
<ClCompile Include="convert.cpp" />
185+
<ClCompile Include="dllmain.cpp" />
186+
<ClCompile Include="libovr_wrapper.cpp" />
187+
<ClCompile Include="OpenOVR.cpp" />
188+
<ClCompile Include="Reimpl\CVRCompositor.cpp" />
189+
<ClCompile Include="Reimpl\CVRRenderModels.cpp" />
190+
<ClCompile Include="Reimpl\CVRSystem.cpp" />
191+
<ClCompile Include="stdafx.cpp">
192+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
193+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
194+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
195+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
196+
</ClCompile>
197+
</ItemGroup>
198+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
199+
<ImportGroup Label="ExtensionTargets">
200+
</ImportGroup>
201+
</Project>

0 commit comments

Comments
 (0)