tangled
alpha
login
or
join now
matrixfurry.com
/
monado
0
fork
atom
The open source OpenXR runtime
0
fork
atom
overview
issues
pulls
pipelines
aux/ogl: Add WGL wrapper to the build.
Ryan Pavlik
3 years ago
fc0f390a
483b0ecb
+29
3 changed files
expand all
collapse all
unified
split
src
xrt
auxiliary
ogl
CMakeLists.txt
wgl_api.c
wgl_api.h
+5
src/xrt/auxiliary/ogl/CMakeLists.txt
···
22
22
if(XRT_HAVE_OPENGLES)
23
23
target_link_libraries(aux_ogl PUBLIC EGL::EGL)
24
24
endif()
25
25
+
26
26
+
if(WIN32)
27
27
+
target_sources(aux_ogl PRIVATE wgl_api.c wgl_api.h)
28
28
+
target_link_libraries(aux_ogl PUBLIC OpenGL::GL)
29
29
+
endif()
+10
src/xrt/auxiliary/ogl/wgl_api.c
···
1
1
+
// Copyright 2021-2022, Collabora, Ltd.
2
2
+
// SPDX-License-Identifier: BSL-1.0
3
3
+
/*!
4
4
+
* @file
5
5
+
* @brief WGL API wrapper.
6
6
+
* @author Ryan Pavlik <ryan.pavlik@collabora.com>
7
7
+
* @ingroup aux_ogl
8
8
+
*/
9
9
+
10
10
+
#include "../../external/glad/src/wgl.c"
+14
src/xrt/auxiliary/ogl/wgl_api.h
···
1
1
+
// Copyright 2021-2022, Collabora, Ltd.
2
2
+
// SPDX-License-Identifier: BSL-1.0
3
3
+
/*!
4
4
+
* @file
5
5
+
* @brief WGL API wrapper header.
6
6
+
* @author Ryan Pavlik <ryan.pavlik@collabora.com>
7
7
+
* @ingroup aux_ogl
8
8
+
*/
9
9
+
10
10
+
#pragma once
11
11
+
12
12
+
#include <xrt/xrt_windows.h>
13
13
+
14
14
+
#include "glad/wgl.h"