GLUTEXTENSIONSUPPORTED(3)

πŸ“¦
version 3.8.0 Β· 2 versions
, in centos-stream 10, centos-stream 9, fedora 43, fedora 44, opensuse-leap 16.0

✨ GLUTEXTENSIONSUPPORTED(3) ✨

ok bestie so this is glutExtensionSupported from the OpenGLUT manual, section 3 (that's the library-call girlies πŸ’…). Library tag: OpenGLUT - opengl. Let's get into it 🫢


🌸 NAME 🌸

glutExtensionSupported β€” figure out if an OpenGL extension is even available, no cap.


πŸ’– LIBRARY πŸ’–

OpenGLUT β€” opengl


✨ SYNOPSIS ✨

#include <openglut.h>

int
glutExtensionSupported(const char *extension);

πŸŽ€ PARAMETERS πŸŽ€

  • extension β€” a string-name of an extension. just the name, as a string, okay? πŸ¦‹

πŸ‘‘ DESCRIPTION πŸ‘‘

So like. This function returns 0 if OpenGLUT can't determine that the extension you asked for is definitely present. That's the whole vibe: no proof, no extension, you get a 0. πŸ™ˆ

It only checks extensions from glGetString(). that's the only source it's pulling from, periodt.


πŸ’€ TODO πŸ’€

the devs left some notes and honestly? relatable:

  • Wouldn't this be simpler and clearer if we used strtok()?
  • Consider an ogWarning() if there is no current rendering context.
  • This is an ugly bit of code with 3 return statements, one of which is never reached.
ngl bestie the last one is sending me 😭 three return statements and one of them is literally never reached. it's giving decorative. it's giving set dressing. iconic behaviour fr fr πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page, bestie!! πŸŽ€ this lil manual page is UNDATED and its footer just says UNTITLED() β€” no version, no date, just vibes ✨ slay, go check your extensions, mwah πŸ’–πŸŒˆ