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
shaderis not a valid shader object name. It's not gonna yell at you, bestie β it just saysGL_FALSEand moves on. - A shader object marked for deletion with
glDeleteShader()but still attached to a program object is still considered a shader object andglIsShaderwill returnGL_TRUE. so likeβ¦ deleted-ish but not fully gone? iconic behavior, honestly. π
πΈ ASSOCIATED GETS πΈ
glGetAttachedShaders()with a valid program objectglGetShader()with argumentsshaderand a parameter to be queriedglGetShaderInfoLog()with argumentobjectglGetShaderSource()with argumentobject
π 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 π
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 (the encore) π
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
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms