Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] glad2 from Dav1dde:glad2 #21

Open
wants to merge 130 commits into
base: glad2
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
5000b14
cmake: adds ON_DEMAND option
BigRedEye Jul 1, 2019
f55b4f9
c: implements on-demand for WGL
Dav1dde Jul 6, 2019
c6dcf51
files: update to latest specifications.
Dav1dde Jul 6, 2019
f9d011c
glad: fixes test failures.
Dav1dde Jul 6, 2019
0c83e53
c: implements runtime install/uninstall-ing of debug functions
Dav1dde Jul 6, 2019
c309b8f
c: fixes missing APIENTRY on C callbacks.
Dav1dde Dec 8, 2019
434695f
glad: Fix EGL loading for EGL_NO_DISPLAY on EGL 1.5 and above
thochstein Dec 10, 2019
abf0099
c: fixes invalid calling convention in WGL loader.
Dav1dde Dec 23, 2019
2e24389
glad: updates parser and generators to support vk 1.2.
Dav1dde Jan 19, 2020
bba732e
rust: disables Clippy to silence warnings
AlexApps99 Mar 4, 2020
231c175
cmake: fixes extension parsing (multiple and NONE)
Dav1dde Mar 7, 2020
19cc25d
glad: makes order of aliases predictable
Dav1dde Mar 23, 2020
b3409f1
c: silences clang "reserved-id-macro" warning in gl headers
Dav1dde Apr 3, 2020
135087c
c: extends gl guards to gl3, glext, glext3
Dav1dde Apr 3, 2020
dcd1e7f
glad: clarifies licensing in LICENSE file and readme
Dav1dde Apr 3, 2020
a3bbb2d
c: wraps code in `extern "C"` for C++ compilers
Dav1dde Apr 3, 2020
6e4758e
parse: properly parses "new" group attribute on enum elements
Dav1dde Apr 5, 2020
8f28e90
glad: fixes memory leak within memoize utility
Dav1dde Apr 6, 2020
91c7599
rust: adds multi-context support
lunabunn Mar 14, 2020
b8072c1
rust: adds mx example and minor impl polishing
Dav1dde Mar 23, 2020
850e4f1
main: mentions `{subcommand} --help` in global help string
Dav1dde Apr 18, 2020
fba0119
rust: implements Send and Sync traits for FnPtr
Dav1dde Apr 25, 2020
26229df
test: silences rust/gen/mx/001 test warning on recent rust compiler
Dav1dde Apr 25, 2020
e8a8dd3
c: fixes generation of struct aliases
nickclark2016 May 21, 2020
b0f1643
parse: fixes aliased enum types
Dav1dde Jun 5, 2020
ca498fb
files: updates to latest specifications
Dav1dde Jun 18, 2020
6467cd6
parse: honors api in require instruction
Dav1dde Jun 18, 2020
cd06d9a
c: fixes surplus of empty lines
Dav1dde Jun 18, 2020
12f9daa
c: stops generating glLoad* for on-demand
Dav1dde Jun 18, 2020
b405ebf
c: better error handling in glad_vk_get_extensions
gk7huki Aug 31, 2020
4518abc
c: scopes goto and removes unnecessary null checks
Dav1dde Sep 1, 2020
1d7b6e9
c: fixes potential segfault in vulkan extensions logic.
Dav1dde Sep 15, 2020
70fe2c0
cmake: improves cmake
WildRackoon Apr 21, 2021
994aa6e
test: fixes cmake test after recent changes
Dav1dde Apr 21, 2021
0bd4a89
c: zero-initializes parsed GL version numbers
Jul 15, 2021
f427c40
glad: adds OpenGL SC support for GL_VERSION string parsing
Jul 15, 2021
4532065
github: adds github actions
Dav1dde Jul 15, 2021
cab4e15
glad: fixes alias extension resolution
Dav1dde Jul 19, 2021
99f3088
test: removes reference to test container
Dav1dde Jul 19, 2021
6278602
c: fixes platform protection for debug builds
Dav1dde Aug 2, 2021
3970b3f
github: runs apt-get update before install
Dav1dde Aug 22, 2021
aa38f7a
rust: strips spec prefix from enumerations
Dav1dde Aug 22, 2021
2f31a7e
rust: reduces generated code by more specific imports
Dav1dde Aug 22, 2021
30368fe
rust: uses more macros for readability
Dav1dde Aug 22, 2021
369fba4
rust: fixes hardcoded mx ctx name
Dav1dde Sep 11, 2021
5fc92d7
cmake: fix extensions parsing in PowerShell
Attractadore Nov 9, 2021
2f498c3
glad: updates specification urls
Dav1dde Dec 21, 2021
1cf7de0
files: updates to latest specifications
Dav1dde Dec 21, 2021
a4420ca
glad: fixes remaining resource URLs
Dav1dde Dec 22, 2021
568d0e6
glad: adds support for bitwidth=64 enums
Dav1dde Dec 22, 2021
01ca2d2
test: fixes C egl tests
Dav1dde Dec 22, 2021
2c472ae
c: fixes include requirements for vulkan
Dav1dde Dec 22, 2021
83ba9fb
rust: implements bitwidth for enums
Dav1dde Dec 22, 2021
f302831
c: fixes bitwidth and empty enum aliasing
Dav1dde Jan 31, 2022
0148445
files: updates to latest specifications
Dav1dde Jan 31, 2022
7a3c14c
rust: fixes aliases to empty enums
Dav1dde Jan 31, 2022
056ad45
c: stops referencing global enum variables by name
Dav1dde Mar 8, 2022
e3c1573
glad: fixes compatibility with jinja 3.1
Dav1dde Mar 31, 2022
cb8171c
glad: bumps jinja2 version to range 2.7-3
Dav1dde Mar 31, 2022
68c595d
glad: actually fixes compatibility with jinja 3.1
Dav1dde Mar 31, 2022
df20d05
c: implements _MAX_ENUM values
Dav1dde Apr 29, 2022
b105140
c: fixes aliasing for egl, glx and wgl
Dav1dde Apr 29, 2022
e0b64d9
c: store mx-global context as a pointer
haasn Oct 21, 2022
24ddbba
c: moves global static handle out of getter, initializes handle by de…
Dav1dde Oct 21, 2022
e4015c5
c: store handles inside mx struct
haasn Oct 21, 2022
41ab48e
glad: expose Type's parent and Member's enum
pipehuffer May 31, 2022
c469e78
glad: add is_descendant method to Type
pipehuffer Jun 10, 2022
cf4badb
c: disables MX_GLOBAL
Dav1dde Oct 21, 2022
d7cd6b4
glad: minor cleanup of member type
Dav1dde Oct 21, 2022
07045ac
glad: removes broken/usupported generators
Dav1dde Oct 21, 2022
11f5ac7
glad: adds SPDX license identifiers
Dav1dde Oct 21, 2022
4639f1a
c: adds GLAD_UNUSED macro
Dav1dde Oct 21, 2022
5548cef
c: adds more GLES include guards
Dav1dde Oct 21, 2022
55b21bf
glad: updates bundled specifications
Dav1dde Oct 21, 2022
4a11682
glad: preparations for glad2 release
Dav1dde Oct 21, 2022
dcc4f69
setup: Bumped version: 2.0.0.
Dav1dde Oct 21, 2022
0ef9e4e
c: fixes gles2 loader issues
Dav1dde Oct 24, 2022
d5e41c6
c: properly fixes gles2 loader
Dav1dde Oct 24, 2022
525eddb
setup: Bumped version: 2.0.1.
Dav1dde Oct 25, 2022
d7f961e
glad: switches from pkg_resources to importlib.metadata
Dav1dde Oct 28, 2022
0106fe7
glad: improves compatibility for importlib.metadata
Dav1dde Oct 28, 2022
74e6688
glad: improves importlib.metadata fallbacks
Dav1dde Oct 28, 2022
f237a2b
setup: Bumped version: 2.0.2.
Dav1dde Oct 28, 2022
e576e95
glad: fixes plugin issues with pytho 3.8 and 3.9
Dav1dde Jan 3, 2023
47c20c1
setup: Bumped version: 2.0.3.
Dav1dde Jan 3, 2023
3e07944
test: removes old unittests
Dav1dde Feb 3, 2023
101c01c
glad: adds support for nested api attributes
Dav1dde Feb 17, 2023
3c2e433
cmake: fixes "duplicate build rules" error
shamanDevel Feb 6, 2023
da4747c
files: updates to latest specifications
Dav1dde Feb 17, 2023
a0a1314
ci: bump actions versions
scribam Jan 16, 2023
71f3063
glad: adds missing vulkan headers
Dav1dde Feb 17, 2023
d08b1aa
setup: Bumped version: 2.0.4.
Dav1dde Feb 17, 2023
3b95bf4
glad: removes rogue print statement
Dav1dde Feb 18, 2023
1377964
c: fixes broken newlines in headers when loaded with CRLF line endings
Dav1dde Apr 4, 2023
2348b07
c: actually fixes newline issue in headers
Dav1dde Apr 4, 2023
08eb15c
c: fixes merged gl loaders
Dav1dde Dec 26, 2023
4196306
c: allow to use system egl for gles2
Dav1dde Dec 26, 2023
e28d1f0
cmake: use FindPython instead of FindPythonInterp
gaboroszkar Dec 26, 2023
74b377a
cmake: honor `BUILD_SHARED_LIBS`
Dav1dde Dec 26, 2023
eb4e3f2
cmake: documents `REPRODUCIBLE` option
Dav1dde Dec 26, 2023
4d8a8d6
cmake: only add C files for non-header
Dav1dde Dec 26, 2023
d535dee
glad: add --version option to command-line interface
zopsicle Dec 26, 2023
f241d94
c: remove one duplicated check for glGetString(GL_VERSION)
z-s-e Dec 26, 2023
eb747c5
cmake: fixes cmake typo creating the wrong dir
Dav1dde Dec 26, 2023
7a7c639
cmake: adds note that paths should/must be absolute
Dav1dde Dec 26, 2023
73eaae0
c: fix extensions loading and parsing
lephilousophe Dec 31, 2023
b3a3644
cmake: provide CMake package (#453)
cNoNim Feb 4, 2024
7e52c19
c: fixes vulkan video headers
Dav1dde Feb 4, 2024
1a3611f
files: updates to latest specifications
Dav1dde Feb 4, 2024
f443700
setup: Bumped version: 2.0.5.
Dav1dde Feb 4, 2024
821bf3a
c: fixes compile warning when GLAD_GLES2_USE_SYSTEM_EGL is set (#456)
halx99 Feb 14, 2024
adc3d7a
cmake: Use include instead of find_package for CMake config (#457)
spnda Feb 23, 2024
463b2b2
c: don't warn on undefined GLAD_GLES2_USE_SYSTEM_EGL (#461)
haasn Mar 16, 2024
51b787e
c: fixes include header replacement
Dav1dde Mar 18, 2024
f8e93fb
files: updates to latest specifications
Dav1dde Mar 18, 2024
658f48e
setup: Bumped version: 2.0.6.
Dav1dde Mar 18, 2024
5dd44f1
example: defines GLAD_GL_IMPLEMENTATION in GLFW example (#464)
makichiis Apr 7, 2024
976973c
files: lookup resources via importlib if available
Dav1dde May 20, 2024
2ae8255
ci: bump actions versions (#472)
scribam May 31, 2024
92fce6b
c: add missing voids to functions
Dav1dde Aug 24, 2024
8dc0d4d
parse: features are only direct children of the root node
Dav1dde Aug 24, 2024
ce26b54
setup: Bumped version: 2.0.7.
Dav1dde Sep 5, 2024
0127717
rust: replace static mut references with addr_of
Dav1dde Sep 6, 2024
7b120b2
glad: replace setup.py with pyproject.toml (#490)
gadjalin Sep 29, 2024
f62a12a
readme: add plugin section
Dav1dde Sep 29, 2024
b3a6c5c
files: updates to latest specifications
Dav1dde Sep 29, 2024
8d85f4a
utility: use modern version to build package
Dav1dde Sep 29, 2024
73db193
setup: Bumped version: 2.0.8.
Dav1dde Sep 29, 2024
f492295
cmake: adds missing CMake vulkan example and removes extra white spac…
ltsdw Oct 17, 2024
7acc116
example: closes win32 window properly in WGL example (#504)
carsonalh Jan 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
cmake: adds ON_DEMAND option
BigRedEye authored and Dav1dde committed Jul 1, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 5000b14a2c71ae4b95cfcbb77e647c764a1a43e5
6 changes: 5 additions & 1 deletion cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -82,7 +82,7 @@ endfunction()

# Calculate the argument and generated files for the "c" subparser for glad
function(__glad_c_library CARGS CFILES)
cmake_parse_arguments(GGC "ALIAS;DEBUG;HEADERONLY;LOADER;MX;MXGLOBAL" "" "API" ${ARGN})
cmake_parse_arguments(GGC "ALIAS;DEBUG;HEADERONLY;LOADER;MX;MXGLOBAL;ON_DEMAND" "" "API" ${ARGN})

if(NOT GGC_API)
message(FATAL_ERROR "Need API")
@@ -168,6 +168,10 @@ function(__glad_c_library CARGS CFILES)
list(APPEND GGC_ARGS "--mx-global")
endif()

if(GGC_ON_DEMAND)
list(APPEND GGC_ARGS "--on-demand")
endif()

set("${CARGS}" "${GGC_ARGS}" PARENT_SCOPE)
set("${CFILES}" "${GGC_FILES}" PARENT_SCOPE)
endfunction()