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 program is 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 and glIsProgram will return GL_TRUE. so yes, it’s still bookkept even when it’s marked for deletion β€” iconic behavior honestly. πŸ‘‘

πŸ¦‹ ASSOCIATED GETS πŸ¦‹

  • glGet() with the argument GL_CURRENT_PROGRAM
  • glGetActiveAttrib() with arguments program and the index of an active attribute variable
  • glGetActiveUniform() with arguments program and the index of an active uniform variable
  • glGetAttachedShaders() with argument program
  • glGetAttribLocation() with arguments program and the name of an attribute variable
  • glGetProgram() with arguments program and the parameter to be queried
  • glGetProgramInfoLog() with argument program
  • glGetUniform() with arguments program and the location of a uniform variable
  • glGetUniformLocation() with arguments program and 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 Β© 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


okay bestie, that’s the whole page ✨ β€” source: [FIXME: source], date: 08/09/2021, manual: GLISPROGRAM(3G). mwah πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from