GLUGETSTRING(3G)

πŸ“¦ version 1.1, in centos-stream 9, fedora 43, fedora 44

✨ 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 of GLU_VERSION or GLU_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