mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 18:08:29 +00:00
aux/ogl: Add WGL wrapper to the build.
This commit is contained in:
parent
483b0ecbc9
commit
fc0f390a87
|
@ -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()
|
||||
|
|
10
src/xrt/auxiliary/ogl/wgl_api.c
Normal file
10
src/xrt/auxiliary/ogl/wgl_api.c
Normal 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"
|
14
src/xrt/auxiliary/ogl/wgl_api.h
Normal file
14
src/xrt/auxiliary/ogl/wgl_api.h
Normal 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"
|
Loading…
Reference in a new issue