| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#ifndef OSGXR_OPENXR_GRAPHICS_BINDING_X11 |
| 5 |
#define OSGXR_OPENXR_GRAPHICS_BINDING_X11 1 |
| 6 |
|
| 7 |
#ifdef OSGXR_USE_X11 |
| 8 |
|
| 9 |
#include "GraphicsBinding.h" |
| 10 |
|
| 11 |
#include <osgViewer/api/X11/GraphicsWindowX11> |
| 12 |
|
| 13 |
#define XR_USE_GRAPHICS_API_OPENGL |
| 14 |
#define XR_USE_PLATFORM_XLIB |
| 15 |
#include <openxr/openxr_platform.h> |
| 16 |
|
| 17 |
namespace osgXR { |
| 18 |
|
| 19 |
namespace OpenXR { |
| 20 |
|
| 21 |
typedef GraphicsBindingImpl<osgViewer::GraphicsWindowX11, XrGraphicsBindingOpenGLXlibKHR> GraphicsBindingX11; |
| 22 |
|
| 23 |
} |
| 24 |
|
| 25 |
} |
| 26 |
|
| 27 |
#endif |
| 28 |
|
| 29 |
#endif |