Debian Codegraph @

3rdparty/osgXR/src/OpenXR/GraphicsBindingWin32.h

raw symbols SCIP
1 // SPDX-License-Identifier: LGPL-2.1-only
2 // Copyright (C) 2021 James Hogan <[email protected]>
3
4 #ifndef OSGXR_OPENXR_GRAPHICS_BINDING_WIN32
5 #define OSGXR_OPENXR_GRAPHICS_BINDING_WIN32 1
6
7 #ifdef OSGXR_USE_WIN32
8
9 #include "GraphicsBinding.h"
10
11 #include <osgViewer/api/Win32/GraphicsWindowWin32>
12
13 // Workaround https://github.com/KhronosGroup/OpenXR-SDK-Source/issues/326
14 #include <unknwn.h>
15
16 #define XR_USE_GRAPHICS_API_OPENGL
17 #define XR_USE_PLATFORM_WIN32
18 #include <openxr/openxr_platform.h>
19
20 namespace osgXR {
21
22 namespace OpenXR {
23
24 typedef GraphicsBindingImpl<osgViewer::GraphicsWindowWin32, XrGraphicsBindingOpenGLWin32KHR> GraphicsBindingWin32;
25
26 } // osgXR::OpenXR
27
28 } // osgXR
29
30 #endif // OSGXR_USE_WIN32
31
32 #endif