mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 03:50:05 +00:00
Use glad instead of GLEW to load OpenGL
This commit is contained in:
parent
6cb668f546
commit
d5cda9b353
5 changed files with 26 additions and 12 deletions
11
external/glad.cmake
vendored
Normal file
11
external/glad.cmake
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
cmake_minimum_required(VERSION 3.24)
|
||||
set(PROJECT_NAME scwx-glad)
|
||||
|
||||
# Path to glad directory
|
||||
set(GLAD_SOURCES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/glad/")
|
||||
|
||||
# Path to glad CMake files
|
||||
add_subdirectory("${GLAD_SOURCES_DIR}/cmake" glad_cmake)
|
||||
|
||||
# Specify glad settings
|
||||
glad_add_library(glad_gl_core_33 LOADER REPRODUCIBLE API gl:core=3.3)
|
||||
Loading…
Add table
Add a link
Reference in a new issue