Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ACGL
acgl
Commits
8a2e4314
Commit
8a2e4314
authored
Jul 03, 2014
by
Philip Trettner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed legacy rift support (compile errors)
parent
4b4d3e58
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
include/ACGL/HardwareSupport/RiftSdk.hh
include/ACGL/HardwareSupport/RiftSdk.hh
+2
-1
include/ACGL/Scene/OculusRiftCamera.hh
include/ACGL/Scene/OculusRiftCamera.hh
+2
-2
src/ACGL/Scene/OculusRiftCamera.cc
src/ACGL/Scene/OculusRiftCamera.cc
+2
-2
src/ACGL/Utils/MemoryMappedFileWinImpl.cc
src/ACGL/Utils/MemoryMappedFileWinImpl.cc
+1
-1
No files found.
include/ACGL/HardwareSupport/RiftSdk.hh
View file @
8a2e4314
...
@@ -14,10 +14,11 @@
...
@@ -14,10 +14,11 @@
#include <ACGL/ACGL.hh>
#include <ACGL/ACGL.hh>
#include <glm/glm.hpp>
#include <glm/glm.hpp>
#include <OVR_CAPI.h>
#if ACGL_RIFT_SDK_VERSION >= 32
#if ACGL_RIFT_SDK_VERSION >= 32
#include <OVR_CAPI.h>
namespace
ACGL
{
namespace
ACGL
{
namespace
HardwareSupport
{
namespace
HardwareSupport
{
...
...
include/ACGL/Scene/OculusRiftCamera.hh
View file @
8a2e4314
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
* users body to the requested eye.
* users body to the requested eye.
*
*
*/
*/
#if
def
ACGL_
USE_OCULUS_RIFT
#if ACGL_
RIFT_SDK_VERSION >= 32
#include <ACGL/ACGL.hh>
#include <ACGL/ACGL.hh>
#include <ACGL/Scene/GenericCamera.hh>
#include <ACGL/Scene/GenericCamera.hh>
...
@@ -66,4 +66,4 @@ ACGL_SMARTPOINTER_TYPEDEFS(OculusRiftCamera)
...
@@ -66,4 +66,4 @@ ACGL_SMARTPOINTER_TYPEDEFS(OculusRiftCamera)
}
}
}
}
#endif // ACGL_
USE_OCULUS_RIFT
#endif // ACGL_
RIFT_SDK_VERSION
src/ACGL/Scene/OculusRiftCamera.cc
View file @
8a2e4314
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* Distributed under the terms of the MIT License (see LICENSE.TXT). *
* Distributed under the terms of the MIT License (see LICENSE.TXT). *
**********************************************************************/
**********************************************************************/
#if
def
ACGL_
USE_OCULUS_RIFT
#if ACGL_
RIFT_SDK_VERSION >= 32
#include <ACGL/Scene/OculusRiftCamera.hh>
#include <ACGL/Scene/OculusRiftCamera.hh>
...
@@ -141,4 +141,4 @@ glm::uvec2 OculusRiftCamera::getViewportSize() const
...
@@ -141,4 +141,4 @@ glm::uvec2 OculusRiftCamera::getViewportSize() const
}
}
}
}
#endif // ACGL_
USE_OCULUS_RIFT
#endif // ACGL_
RIFT_SDK_VERSION >= 32
src/ACGL/Utils/MemoryMappedFileWinImpl.cc
View file @
8a2e4314
...
@@ -63,7 +63,7 @@ MemoryMappedFileWinImpl::MemoryMappedFileWinImpl(
...
@@ -63,7 +63,7 @@ MemoryMappedFileWinImpl::MemoryMappedFileWinImpl(
// open the file
// open the file
//
//
//////////////////////
//////////////////////
mFileHandle
=
CreateFile
(
_fileName
,
fileAccess
,
fileShare
,
mFileHandle
=
CreateFile
A
(
_fileName
,
fileAccess
,
fileShare
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
mFileHandle
==
INVALID_HANDLE_VALUE
)
if
(
mFileHandle
==
INVALID_HANDLE_VALUE
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment