The open source OpenXR runtime

xrt: Header for Win32 OpenGL.

+33
+33
src/xrt/include/xrt/xrt_gfx_win32.h
··· 1 + // Copyright 2019-2022, Collabora, Ltd. 2 + // SPDX-License-Identifier: BSL-1.0 3 + /*! 4 + * @file 5 + * @brief Header defining a XRT graphics provider. 6 + * @author Ryan Pavlik <ryan.pavlik@collabora.com> 7 + * @author Jakob Bornecrantz <jakob@collabora.com> 8 + * @ingroup xrt_iface 9 + */ 10 + 11 + #pragma once 12 + 13 + #include "xrt/xrt_compositor.h" 14 + 15 + #include "glad/gl.h" 16 + 17 + #ifdef __cplusplus 18 + extern "C" { 19 + #endif 20 + 21 + /*! 22 + * Create an OpenGL compositor client using Win32. 23 + * 24 + * @ingroup xrt_iface 25 + * @public @memberof xrt_compositor_native 26 + */ 27 + struct xrt_compositor_gl * 28 + xrt_gfx_provider_create_gl_win32(struct xrt_compositor_native *xcn, void *hDC, void *hGLRC); 29 + 30 + 31 + #ifdef __cplusplus 32 + } 33 + #endif