Commit 1fab2513 authored by Robert Menzel's avatar Robert Menzel
Browse files

fixed defines

parent 84223f7a
...@@ -10,11 +10,12 @@ ...@@ -10,11 +10,12 @@
* *
* *
*/ */
#include <OVR_CAPI.h> #ifdef ACGL_USE_OCULUS_RIFT
#include <ACGL/ACGL.hh> #include <ACGL/ACGL.hh>
#include <glm/glm.hpp> #include <glm/glm.hpp>
#include <OVR_CAPI.h>
#ifdef ACGL_USE_OCULUS_RIFT
#if ACGL_RIFT_SDK_VERSION >= 32 #if ACGL_RIFT_SDK_VERSION >= 32
namespace ACGL{ namespace ACGL{
...@@ -35,4 +36,4 @@ namespace HardwareSupport{ ...@@ -35,4 +36,4 @@ namespace HardwareSupport{
} }
#endif // RIFT_VERSION #endif // RIFT_VERSION
#endif // ACGL_USE_OCULUS_RIFT #endif // ACGL_USE_OCULUS_RIFT
\ No newline at end of file
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
* users body to the requested eye. * users body to the requested eye.
* *
*/ */
#ifdef ACGL_USE_OCULUS_RIFT
#include <ACGL/ACGL.hh> #include <ACGL/ACGL.hh>
#include <ACGL/Scene/GenericCamera.hh> #include <ACGL/Scene/GenericCamera.hh>
...@@ -64,3 +65,5 @@ private: ...@@ -64,3 +65,5 @@ private:
ACGL_SMARTPOINTER_TYPEDEFS(OculusRiftCamera) ACGL_SMARTPOINTER_TYPEDEFS(OculusRiftCamera)
} }
} }
#endif // ACGL_USE_OCULUS_RIFT
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
* Distributed under the terms of the MIT License (see LICENSE.TXT). * * Distributed under the terms of the MIT License (see LICENSE.TXT). *
**********************************************************************/ **********************************************************************/
#ifdef ACGL_USE_OCULUS_RIFT
#include <ACGL/Scene/OculusRiftCamera.hh> #include <ACGL/Scene/OculusRiftCamera.hh>
#include <ACGL/Utils/Log.hh> #include <ACGL/Utils/Log.hh>
...@@ -138,3 +140,5 @@ glm::uvec2 OculusRiftCamera::getViewportSize() const ...@@ -138,3 +140,5 @@ glm::uvec2 OculusRiftCamera::getViewportSize() const
} }
} }
#endif // ACGL_USE_OCULUS_RIFT
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment