| 1 | // SPDX-License-Identifier: LGPL-2.1-only |
| 2 | // Copyright (C) 2021 James Hogan <[email protected]> |
| 3 | |
| 4 | #include "GraphicsBindingWin32.h" |
| 5 | |
| 6 | using namespace osgXR::OpenXR; |
| 7 | |
| 8 | template <> |
| 9 | GraphicsBindingWin32::GraphicsBindingImpl(osgViewer::GraphicsWindowWin32 *window) : |
| 10 | _binding{ XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR } |
| 11 | { |
| 12 | _binding.hDC = window->getHDC(); |
| 13 | _binding.hGLRC = window->getWGLContext(); |
| 14 | } |