GLUCHECKEXTENSION(3G)

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

πŸ’… GLUCHECKEXTENSION (3G) ✨

okay bestie, welcome to the GLUCHECKEXTENSION(3G) page β€” yes the title is doing all caps but we can still make it cute πŸŽ€


🌸 NAME 🌸

gluCheckExtension β€” figures out if an extension name is actually supported πŸ¦‹


✨ C SPECIFICATION ✨

GLboolean gluCheckExtension( const GLubyte *extName,
                             const GLubyte *extString )

like. that's it. that's the whole vibe. πŸ’–


πŸŽ€ PARAMETERS πŸŽ€

  • extName β€” the extension name you're asking about, bestie. just one name.
  • extString β€” a space-separated list of the extension names that are supported. so like, the whole roster. πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

gluCheckExtension returns GL_TRUE if extName is supported, and otherwise GL_FALSE gets returned. simple as that, no cap. βœ…

this is the move when you wanna check for the presence of OpenGL, GLU, or GLX extension names β€” you pass in the extension strings that come back from glGetString, gluGetString, glXGetClientString, glXQueryExtensionsString, or glXQueryServerString, respectively, as your extString. yep, respectively. we're being precise here. 🫢


πŸ’€ NOTES πŸ’€

okay so the little gotchas, listen up:

  • cases where one extension name is a substring of another one are correctly handled. the way that it does NOT get confused?? iconic. πŸ”₯
  • there may or may not be leading or trailing blanks in extString. either way. we don't judge. πŸ™ˆ
  • extension names should not contain embedded spaces. like, please. just don't. 😭
  • all strings are null-terminated. every single one. periodt. πŸ’…

🌈 SEE ALSO 🌈

  • glGetString(3G)
  • gluGetString(3G)
  • glXGetClientString(3G)
  • glXQueryExtensionsString(3G)
  • glXQueryServerString(3G)

go read those too, they're giving main character energy πŸ‘‘


and that's the whole page, bestie!! the footer is just GLUCHECKEXTENSION(3G) again β€” that's the manual name and the source/version line, and ngl there's no date up in here, so that's all she wrote. mwah. πŸ’‹πŸ¦‹

πŸ“¦ where this page comes from