Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_IXrGraphicsBinding.h
| Show All 24 Lines | |||||
| #include <string> | #include <string> | ||||
| #include <vector> | #include <vector> | ||||
| #include "GHOST_Xr_openxr_includes.h" | #include "GHOST_Xr_openxr_includes.h" | ||||
| class GHOST_IXrGraphicsBinding { | class GHOST_IXrGraphicsBinding { | ||||
| public: | public: | ||||
| union { | union { | ||||
| #if defined(WITH_GHOST_X11) | #if defined(WITH_GHOST_X11) && !defined(WITH_GL_EGL) | ||||
| XrGraphicsBindingOpenGLXlibKHR glx; | XrGraphicsBindingOpenGLXlibKHR glx; | ||||
| #elif defined(WITH_GL_EGL) | |||||
| XrGraphicsBindingEGLMNDX egl; | |||||
brecht: Simpler:
```
#if defined(WITH_GL_EGL)
XrGraphicsBindingOpenGLXlibKHR glx;
#elif defined… | |||||
| #elif defined(WIN32) | #elif defined(WIN32) | ||||
| XrGraphicsBindingOpenGLWin32KHR wgl; | XrGraphicsBindingOpenGLWin32KHR wgl; | ||||
| XrGraphicsBindingD3D11KHR d3d11; | XrGraphicsBindingD3D11KHR d3d11; | ||||
| #endif | #endif | ||||
| } oxr_binding; | } oxr_binding; | ||||
| virtual ~GHOST_IXrGraphicsBinding() = default; | virtual ~GHOST_IXrGraphicsBinding() = default; | ||||
| Show All 27 Lines | |||||
Simpler:
#if defined(WITH_GL_EGL) XrGraphicsBindingOpenGLXlibKHR glx; #elif defined(WITH_GHOST_X11) XrGraphicsBindingEGLMNDX egl;