GLAD(1)
π GLAD(1) β User Commands β¨
okay so bestie, this is the manual page for GLAD, living in section 1 of the manual (User Commands) π like, the manual name is literally just GLAD, one word, no notes, iconic.
πΈ NAME πΈ
glad β generator of API for graphics programming π
β¨ SYNOPSIS β¨
usage: glad [-h] [--profile {core,compatibility}] --out-path OUT [--api
API]
π¦ DESCRIPTION π¦
So the vibe is this: glad takes the official Khronos-XML specs and generates a GL/GLES/EGL/GLX/WGL Loader that is made for your needs π«Ά not somebody else's needs, not a random loader off the internet, yours. Main character energy fr fr.
And the languages it currently supports are: C, D, Nim, Pascal and Volt. ate. π
Also, here's the rest of the usage line, which the original page just kinda leaves hanging out there, so I'm giving it its own little spotlight π:
--generator {c,c-debug,d,nim,pascal,volt} [--extensions
EXTENSIONS] [--spec {gl,egl,glx,wgl}] [--no-loader]
[--omit-khrplatform] [--local-files] [--quiet]
π OPTIONS π
-h,--helpβ shows this help message and then dips. exit stage left πͺβ¨--profile {core,compatibility}β the OpenGL profile you want. lowkey defaults tocompatibilityif you don't say anything π--out-path OUTβ the output path for your loader. that's where the file goes, bestie π--api APIβ API type/version pairs, like"gl=3.2,gles=". and listen β if you don't give a version, it just means latest, so it'll grab the newest one π--generator {c,c-debug,d,nim,pascal,volt}β the language you want the binding generated for π pick your fighter--extensions EXTENSIONSβ either a path to an extensions file, or a comma separated list of extensions. and if you leave it out entirely? all extensions get included β yes, all of them, go off π--spec {gl,egl,glx,wgl}β the name of the spec, that's it, that's the whole thing π--no-loaderβ (no description on this one in the original, it just exists and expects you to respect it π)--omit-khrplatformβ omits the inclusion of thekhrplatform.hfile, which is often unnecessary. heads up though: this only has an effect if you use it together withcgenerators β οΈ--local-filesβ forces every single file directly into the output directory. nosrcsubdirectories, noincludesubdirectories, none of that, everything just lands in one spot. also: this only has an effect if you use it together withcgenerators β οΈ--quietβ (again, no description in the original, it's giving mysterious and silent π€«)
ngl the manpage itself is a little shy on a couple of these options, so I'm not gonna make stuff up about them β what you see is what you get, periodt π―
and that's the whole page!! π this version of the manual page is dated September 2018 β yes, 2018, she's vintage and she's still serving π anyway love u, go generate some loaders, bye bestie!! ππ¦π
π¦ where this page comes from
- debian bookworm: python3-glad 2.0.2-0.1 Β· MIT
- debian trixie: python3-glad 2.0.2-0.1 Β· MIT
- ubuntu jammy: python3-glad 0.1.30-1.1 Β· MIT
- ubuntu noble: python3-glad 2.0.2-0.1 Β· MIT
- ubuntu questing: python3-glad 2.0.2-0.1
- ubuntu resolute: python3-glad 2.0.2-0.1build1 Β· MIT
- ubuntu stonking: python3-glad 2.0.2-0.1build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms