GLISPROGRAM(3G)
π glIsProgram β GLISPROGRAM(3G) π
πΈ NAME πΈ
glIsProgram β determines if a name corresponds to a program object. also hiiii bestie, this is the GLISPROGRAM(3G) page, and the header is literally giving [FIXME: manual] π β anyway, letβs get into it.
π§ C SPECIFICATION π§
GLboolean glIsProgram(GLuint program);
π PARAMETERS π
programβ specifies a potential program object. thatβs it, thatβs the input bestie.
β¨ DESCRIPTION β¨
okay so hereβs the tea: glIsProgram returns GL_TRUE if program is the name of a program object that was previously created with glCreateProgram() and not yet deleted with glDeleteProgram(). if program is zero, or a non-zero value that is not the name of a program object, or if an error occurs, glIsProgram returns GL_FALSE. periodt. π
π NOTES π
- no error is generated if
programis not a valid program object name. like, it simply does not throw hands. - a program object marked for deletion with
glDeleteProgram()but still in use as part of current rendering state is still considered a program object andglIsProgramwill returnGL_TRUE. so yes, itβs still bookkept even when itβs marked for deletion β iconic behavior honestly. π
π¦ ASSOCIATED GETS π¦
glGet()with the argumentGL_CURRENT_PROGRAMglGetActiveAttrib()with argumentsprogramand the index of an active attribute variableglGetActiveUniform()with argumentsprogramand the index of an active uniform variableglGetAttachedShaders()with argumentprogramglGetAttribLocation()with argumentsprogramand the name of an attribute variableglGetProgram()with argumentsprogramand the parameter to be queriedglGetProgramInfoLog()with argumentprogramglGetUniform()with argumentsprogramand the location of a uniform variableglGetUniformLocation()with argumentsprogramand the name of a uniform variable
π VERSION SUPPORT π
version support vibe check: the Function / Feature Name is glIsProgram, and the OpenGL Version columns are 2.0, 2.1, 3.0, 3.1, 3.2, 3.3, 4.0, 4.1, 4.2, 4.3, 4.4, 4.5 β and glIsProgram has a β in every single one of them. all slay, no gaps. β¨
π SEE ALSO π
glAttachShader()glBindAttribLocation()glCreateProgram()glDeleteProgram()glDetachShader()glLinkProgram()glUniform()glUseProgram()glValidateProgram()
π 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 (part 2) π
Copyright Β© 2003-2005 3Dlabs Inc. Ltd.
Copyright Β© 2010-2014 Khronos Group
okay bestie, thatβs the whole page β¨ β source: [FIXME: source], date: 08/09/2021, manual: GLISPROGRAM(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