aux/ogl: Add WGL wrapper to the build.

This commit is contained in:
Ryan Pavlik 2021-10-15 16:16:59 -05:00
parent 483b0ecbc9
commit fc0f390a87
3 changed files with 29 additions and 0 deletions

View file

@ -22,3 +22,8 @@ endif()
if(XRT_HAVE_OPENGLES)
target_link_libraries(aux_ogl PUBLIC EGL::EGL)
endif()
if(WIN32)
target_sources(aux_ogl PRIVATE wgl_api.c wgl_api.h)
target_link_libraries(aux_ogl PUBLIC OpenGL::GL)
endif()

View file

@ -0,0 +1,10 @@
// Copyright 2021-2022, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
* @brief WGL API wrapper.
* @author Ryan Pavlik <ryan.pavlik@collabora.com>
* @ingroup aux_ogl
*/
#include "../../external/glad/src/wgl.c"

View file

@ -0,0 +1,14 @@
// Copyright 2021-2022, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
* @brief WGL API wrapper header.
* @author Ryan Pavlik <ryan.pavlik@collabora.com>
* @ingroup aux_ogl
*/
#pragma once
#include <xrt/xrt_windows.h>
#include "glad/wgl.h"