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 to compatibility if 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 the khrplatform.h file, which is often unnecessary. heads up though: this only has an effect if you use it together with c generators ⚠️
  • --local-files β€” forces every single file directly into the output directory. no src subdirectories, no include subdirectories, none of that, everything just lands in one spot. also: this only has an effect if you use it together with c generators ⚠️
  • --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!! πŸŽ€πŸ¦‹πŸ’–