xrt: Header for Win32 OpenGL.

This commit is contained in:
Ryan Pavlik 2021-10-15 14:15:58 -05:00
parent f2967e834c
commit 483b0ecbc9

View file

@ -0,0 +1,33 @@
// Copyright 2019-2022, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
* @brief Header defining a XRT graphics provider.
* @author Ryan Pavlik <ryan.pavlik@collabora.com>
* @author Jakob Bornecrantz <jakob@collabora.com>
* @ingroup xrt_iface
*/
#pragma once
#include "xrt/xrt_compositor.h"
#include "glad/gl.h"
#ifdef __cplusplus
extern "C" {
#endif
/*!
* Create an OpenGL compositor client using Win32.
*
* @ingroup xrt_iface
* @public @memberof xrt_compositor_native
*/
struct xrt_compositor_gl *
xrt_gfx_provider_create_gl_win32(struct xrt_compositor_native *xcn, void *hDC, void *hGLRC);
#ifdef __cplusplus
}
#endif