GLINVALIDATETEXIMAGE(3G)
β¨ NAME β¨
glInvalidateTexImage β invalidate the entirety a texture image. also hiii bestie, this is the 3G manual page, and the header had a lil [FIXME: manual] placeholder, which is giving βweβll fix it laterβ energy. No cap, this whole page is about invalidating a texture image.
π§ C SPECIFICATION π§
void glInvalidateTexImage(GLuint texture, GLint level);
π PARAMETERS π
textureβ the name of a texture object to invalidate. like, theGLuintname, bestie.levelβ the level of detail of the texture object to invalidate. the level-of-detail number in question.
π DESCRIPTION π
okay so the page literally says glInvalidateTexSubImage invalidates all of a texture image β yes, glInvalidateTexSubImage, right there in the DESCRIPTION of GLINVALIDATETEXIMAGE, and we are not fixing it, we are simply reporting the typo with love. π«Ά texture and level indicated which texture image is being invalidated. After this command, data in the texture image has undefined values. undefined, bestie β not zero, not cleared, just undefined, so do not go treating it like a cute lil predictable buffer. π
level must be greater than or equal to zero and be less than the base 2 logarithm of the maximum texture width, height, or depth.
For textures of targets GL_TEXTURE_RECTANGLE, GL_TEXTURE_BUFFER, GL_TEXTURE_2D_MULTISAMPLE, or GL_TEXTURE_2D_MULTISAMPLE_ARRAY, level must be zero. periodt.
π ERRORS π
the vibe check can fail in three GL_INVALID_VALUE ways:
GL_INVALID_VALUEis generated iflevelis less than zero or if it is greater or equal to the base 2 logarithm of the maximum texture width, height, or depth.GL_INVALID_VALUEis generated if the target oftextureis any ofGL_TEXTURE_RECTANGLE,GL_TEXTURE_BUFFER,GL_TEXTURE_2D_MULTISAMPLE, orGL_TEXTURE_2D_MULTISAMPLE_ARRAYandlevelis not zero.GL_INVALID_VALUEis generated iftextureis not the name of an existing texture object.
π ASSOCIATED GETS π
glGet() with argument GL_MAX_TEXTURE_SIZE β thatβs the associated get, go get it.
π VERSION SUPPORT π
The table has Function / Feature Name down one side and OpenGL Version across the top, with versions 2.0 through 4.5. Hereβs the same tea, listified because tables are not the moment:
glInvalidateTexImageon OpenGL2.0β-glInvalidateTexImageon OpenGL2.1β-glInvalidateTexImageon OpenGL3.0β-glInvalidateTexImageon OpenGL3.1β-glInvalidateTexImageon OpenGL3.2β-glInvalidateTexImageon OpenGL3.3β-glInvalidateTexImageon OpenGL4.0β-glInvalidateTexImageon OpenGL4.1β-glInvalidateTexImageon OpenGL4.2β-glInvalidateTexImageon OpenGL4.3ββglInvalidateTexImageon OpenGL4.4ββglInvalidateTexImageon OpenGL4.5ββ
π¦ SEE ALSO π¦
glInvalidateTexSubImage(),, glInvalidateBufferSubData(), glInvalidateBufferData(), glInvalidateFramebuffer(), glInvalidateSubFramebuffer(). (and yes, the double comma after glInvalidateTexSubImage(),, is exactly what the page has β leave her alone, sheβs iconic π«Ά)
π COPYRIGHT π
Copyright Β© 2013-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 π
Copyright Β© 2013-2014 Khronos Group
byeee bestie, this was GLINVALIDATETEXIMAGE(3G) from [FIXME: source], dated 08/09/2021 β go invalidate responsibly and hydrate π
β¨
π¦ 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