Regenerate GL loader code with GLAD 2

GLAD 1 creates unusable loaders for EGL, while the newly released GLAD 2
does not, so for consistency I thought that it would be a good idea to
uniform things beforehand. While it had some API changes some renames
were all that was needed and everything works like before, at least on
the Wayland branch.

I've kept the structure identical, although this new generator has quite
a few hefty features, such as a single header mode.

I've also added GLAD to `thirdparty/README.md`, but I haven't specified
that in the commit title because it's a very small "fix".
This commit is contained in:
Riteo
2022-11-07 14:12:21 +01:00
parent aa4c286808
commit f6397bffb1
12 changed files with 5964 additions and 5773 deletions

View File

@ -6,7 +6,7 @@ if env["platform"] in ["haiku", "macos", "windows", "linuxbsd"]:
# Thirdparty source files
thirdparty_dir = "#thirdparty/glad/"
thirdparty_sources = [
"glad.c",
"gl.c",
]
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]