GLISSHADER(3G)

πŸ’… glIsShader β€” straight from the 3G manual, bestie πŸ’…

okay so this is the GLISSHADER(3G) page β€” the header has a little [FIXME: manual] placeholder moment, no cap β€” and we're here to talk about glIsShader. It's giving "is this name a shader object or not?" energy, and the answer is literally just GL_TRUE or GL_FALSE. ✨


πŸ’– NAME πŸ’–

glIsShader β€” determines if a name corresponds to a shader object


🧚 C SPECIFICATION 🧚

GLboolean glIsShader(GLuint shader);

πŸŽ€ PARAMETERS πŸŽ€

  • shader β€” specifies a potential shader object.

✨ DESCRIPTION ✨

glIsShader returns GL_TRUE if shader is the name of a shader object previously created with glCreateShader() and not yet deleted with glDeleteShader(). If shader is zero or a non-zero value that is not the name of a shader object, or if an error occurs, glIsShader returns GL_FALSE. That's the whole vibe check, fr fr. πŸ’…


πŸ¦‹ NOTES πŸ¦‹

  • No error is generated if shader is not a valid shader object name. It's not gonna yell at you, bestie β€” it just says GL_FALSE and moves on.
  • A shader object marked for deletion with glDeleteShader() but still attached to a program object is still considered a shader object and glIsShader will return GL_TRUE. so like… deleted-ish but not fully gone? iconic behavior, honestly. πŸ‘‘

🌸 ASSOCIATED GETS 🌸

  • glGetAttachedShaders() with a valid program object
  • glGetShader() with arguments shader and a parameter to be queried
  • glGetShaderInfoLog() with argument object
  • glGetShaderSource() with argument object

🌈 VERSION SUPPORT 🌈

function / feature name: glIsShader. OpenGL version vibe check: it ate in every single one listed below β€” all βœ”, periodt.

  • OpenGL 2.0 β€” βœ”
  • OpenGL 2.1 β€” βœ”
  • OpenGL 3.0 β€” βœ”
  • OpenGL 3.1 β€” βœ”
  • OpenGL 3.2 β€” βœ”
  • OpenGL 3.3 β€” βœ”
  • OpenGL 4.0 β€” βœ”
  • OpenGL 4.1 β€” βœ”
  • OpenGL 4.2 β€” βœ”
  • OpenGL 4.3 β€” βœ”
  • OpenGL 4.4 β€” βœ”
  • OpenGL 4.5 β€” βœ”

πŸ”₯ SEE ALSO πŸ”₯

glAttachShader(), glCompileShader(), glCreateShader(), glDeleteShader(), glDetachShader(), glLinkProgram(), glShaderSource()


Copyright Β© 2003-2005 3Dlabs Inc. Ltd. Copyright Β© 2010-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/


  • Copyright Β© 2003-2005 3Dlabs Inc. Ltd.
  • Copyright Β© 2010-2014 Khronos Group

and that's the whole page, bestie 🫢 the footer says [FIXME: source], the date is 08/09/2021, and the manual is GLISSHADER(3G). mwah πŸ’‹

πŸ“¦ where this page comes from