diff options
author | Sven Gothel <[email protected]> | 2015-03-28 01:43:35 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-03-28 01:43:35 +0100 |
commit | 4207f9c279e832e3afcb3f5fc6cd8d84cb4cfe4c (patch) | |
tree | cf3671058d55b47ab6cb6f36f369928606137628 /LibOVR/Src/CAPI/GL/CAPI_GL_Util.h | |
parent | c29cd1a2fbff6282bab956ad61661ac9d48c4e6e (diff) |
Bump OculusVR RIFT SDK to 0.5.0.1vanilla_0.5.0.1
Diffstat (limited to 'LibOVR/Src/CAPI/GL/CAPI_GL_Util.h')
-rw-r--r-- | LibOVR/Src/CAPI/GL/CAPI_GL_Util.h | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/LibOVR/Src/CAPI/GL/CAPI_GL_Util.h b/LibOVR/Src/CAPI/GL/CAPI_GL_Util.h index 69d4d08..c181d13 100644 --- a/LibOVR/Src/CAPI/GL/CAPI_GL_Util.h +++ b/LibOVR/Src/CAPI/GL/CAPI_GL_Util.h @@ -24,30 +24,30 @@ limitations under the License. ************************************************************************************/ -#ifndef INC_OVR_CAPI_GL_Util_h -#define INC_OVR_CAPI_GL_Util_h - -#include "../../OVR_CAPI.h" -#include "../../Kernel/OVR_Array.h" -#include "../../Kernel/OVR_Math.h" -#include "../../Kernel/OVR_RefCount.h" -#include "../../Kernel/OVR_String.h" -#include "../../Kernel/OVR_Types.h" -#include "../../Kernel/OVR_Log.h" - +#ifndef OVR_CAPI_GL_Util_h +#define OVR_CAPI_GL_Util_h + +#include "OVR_CAPI.h" +#include "Kernel/OVR_Array.h" +#include "Kernel/OVR_RefCount.h" +#include "Kernel/OVR_String.h" +#include "Kernel/OVR_Types.h" +#include "Kernel/OVR_Log.h" #if defined(OVR_OS_WIN32) -#define WIN32_LEAN_AND_MEAN -#include <Windows.h> -#endif + #include "Kernel/OVR_Win32_IncludeWindows.h" +#endif // OVR_OS_WIN32 +#include "Extras/OVR_Math.h" #if !defined(OVR_DISABLE_GLE) // By default we use the GLE module in order to link to OpenGL functions. However, if an external user -#include "CAPI_GLE.h" // wants to use an alternative mechanism to connect to OpenGL functions, they can #define OVR_DISABLE_GLE. +#include "GL/CAPI_GLE.h" // wants to use an alternative mechanism to connect to OpenGL functions, they can #define OVR_DISABLE_GLE. #endif #if defined(OVR_OS_MAC) + #include <memory> #include <CoreGraphics/CGDirectDisplay.h> #include <OpenGL/CGLTypes.h> + class MacContextImpl; #endif @@ -485,12 +485,13 @@ class Context GLXContext systemContext; XVisualInfo x11Visual; #elif defined(OVR_OS_MAC) - CGLContextObj systemContext; + std::unique_ptr<MacContextImpl> systemContext; #endif - + public: Context(); + ~Context(); void InitFromCurrent(); void CreateShared( Context & ctx ); #if defined(OVR_OS_MAC) @@ -550,4 +551,4 @@ struct AutoContext }}} // namespace OVR::CAPI::GL -#endif // INC_OVR_CAPI_GL_Util_h +#endif // OVR_CAPI_GL_Util_h |