GLUGETSTRING(3G)
β¨ GLUGETSTRING β¨
okay bestie, welcome to the 3G manual, this one's called gluGetString and it's literally just "hey GLU, what version are you and what extensions you got" π
πΈ NAME πΈ
gluGetString β returns a string describing the GLU version or GLU extensions π¦
π C SPECIFICATION π
const GLubyte * gluGetString( GLenum name )
π PARAMETERS π
nameβ you hand it a symbolic constant, and it's gotta be one ofGLU_VERSIONorGLU_EXTENSIONS. That's the whole vibe check. π
π DESCRIPTION π
So gluGetString gives you back a pointer to a static string that describes the GLU version, or the GLU extensions that are supported. Either/or, depends on what you asked for. β¨
The version number comes in one of these forms, no cap:
major_number.minor_number
major_number.minor_number.release_number.
And the version string itself looks like this:
version number<space>vendor-specific information
Vendor-specific info is optional. And its ... and contents depend on the implementation (yes bestie the original wording is a little cursed there, but that's genuinely what it says, I'm not gonna lie to you π).
The standard GLU contains a basic set of features and capabilities. If a company, or a lil group of companies, wants to support other features, those can get included as extensions to the GLU. So if name is GLU_EXTENSIONS, then gluGetString returns a space-separated list of the names of the supported GLU extensions. (Extension names never contain spaces, so that list actually parses. iconic.) π«Ά
All strings are null-terminated. periodt. π
π NOTES π
gluGetString only returns info about GLU extensions. If you want a list of GL extensions, you gotta call glGetString instead. Different function, different vibe. π¦
gluGetString is an initialization routine. Calling it after a glNewList results in undefined behavior. So like, do not do that. I'm serious. π
π ERRORS π
NULL is returned if name is not GLU_VERSION or GLU_EXTENSIONS. Wrong question, no answer. β¨
π SEE ALSO π
glGetString(3G)
and that's the whole page bestie!! π this was the GLUGETSTRING page out of the 3G manual β the version-of-record on the footer, mwah, slay, go call glGetString if you need the GL side instead π§βπ
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- fedora 43: gl-manpages 1.1-34.20190306.fc43 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- fedora 44: gl-manpages 1.1-35.20190306.fc44 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms