GLCOMPRESSEDTEXSUBIM(3G)
πΈ NAME πΈ
okay bestie, welcome to the GLCOMPRESSEDTEXSUBIM(3G) page β the manual header slot literally says [FIXME: manual], and we are rolling with it π
. This page is about glCompressedTexSubImage1D and glCompressedTextureSubImage1D: both specify a one-dimensional texture subimage in a compressed format. Periodt.
π§ C SPECIFICATION π§
void glCompressedTexSubImage1D(GLenum target, GLint level,
GLint xoffset, GLsizei width,
GLenum format, GLsizei imageSize,
const GLvoid * data);
void glCompressedTextureSubImage1D(GLuint texture, GLint level,
GLint xoffset, GLsizei width,
GLenum format, GLsizei imageSize,
const void *data);
π PARAMETERS π
targetβ Specifies the target, to which the texture is bound, forglCompressedTexSubImage1Dfunction. Must beGL_TEXTURE_1D.textureβ Specifies the texture object name forglCompressedTextureSubImage1Dfunction.levelβ Specifies the level-of-detail number. Level0is the base image level. Level n is the nth mipmap reduction image.xoffsetβ Specifies a texel offset in the x direction within the texture array.widthβ Specifies the width of the texture subimage.formatβ Specifies the format of the compressed image data stored at addressdata.imageSizeβ Specifies the number of unsigned bytes of image data starting at the address specified bydata.dataβ Specifies a pointer to the compressed image data in memory.
π¦ DESCRIPTION π¦
Texturing allows elements of an image array to be read by shaders. Literally the whole point, no cap.
glCompressedTexSubImage1D and glCompressedTextureSubImage1D redefine a contiguous subregion of an existing one-dimensional texture image. The texels referenced by data replace the portion of the existing texture array with x indices xoffset and xoffset + width - 1, inclusive. This region may not include any texels outside the range of the texture array as it was originally specified. It is not an error to specify a subtexture with width of 0, but such a specification has no effect β itβs giving βIβm here but Iβm not doing anythingβ energy π.
internalformat must be a known compressed image format (such as GL_RGTC) or an extension-specified compressed-texture format. The format of the compressed texture image is selected by the GL implementation that compressed it (see glTexImage1D()), and should be queried at the time the texture was compressed with glGetTexLevelParameter().
If a non-zero named buffer object is bound to the GL_PIXEL_UNPACK_BUFFER target (see glBindBuffer()) while a texture image is specified, data is treated as a byte offset into the buffer object's data store.
π ERRORS π
GL_INVALID_ENUMis generated ifinternalformatis not one of the generic compressed internal formats:GL_COMPRESSED_RED,GL_COMPRESSED_RG,GL_COMPRESSED_RGB,GL_COMPRESSED_RGBA.GL_COMPRESSED_SRGB, orGL_COMPRESSED_SRGB_ALPHA.GL_INVALID_VALUEis generated ifimageSizeis not consistent with the format, dimensions, and contents of the specified compressed image data.GL_INVALID_OPERATIONis generated if parameter combinations are not supported by the specific compressed internal format as specified in the specific texture compression extension.GL_INVALID_OPERATIONis generated if a non-zero buffer object name is bound to theGL_PIXEL_UNPACK_BUFFERtarget and the buffer object's data store is currently mapped.GL_INVALID_OPERATIONis generated if a non-zero buffer object name is bound to theGL_PIXEL_UNPACK_BUFFERtarget and the data would be unpacked from the buffer object such that the memory reads required would exceed the data store size.GL_INVALID_OPERATIONis generated byglCompressedTextureSubImage1Dfunction iftextureis not the name of an existing texture object.
Undefined results, including abnormal program termination, are generated if data is not encoded in a manner consistent with the extension specification defining the internal compression format. This is the βbestie do not rawdog the compressed data formatβ warning, fr fr π.
β¨ ASSOCIATED GETS β¨
glGetCompressedTexImage()glGet()with argumentGL_TEXTURE_COMPRESSEDglGet()with argumentGL_PIXEL_UNPACK_BUFFER_BINDINGglGetTexLevelParameter()with argumentsGL_TEXTURE_INTERNAL_FORMATandGL_TEXTURE_COMPRESSED_IMAGE_SIZE
π VERSION SUPPORT π
The original grid has a Function / Feature Name column and these OpenGL Version columns: 2.0, 2.1, 3.0, 3.1, 3.2, 3.3, 4.0, 4.1, 4.2, 4.3, 4.4, 4.5. Hereβs the tea without the table, bestie:
glCompressedTexSubImage1Dβ OpenGL2.0:β,2.1:β,3.0:β,3.1:β,3.2:β,3.3:β,4.0:β,4.1:β,4.2:β,4.3:β,4.4:β,4.5:β.glCompressedTextureSubImage1Dβ OpenGL2.0:-,2.1:-,3.0:-,3.1:-,3.2:-,3.3:-,4.0:-,4.1:-,4.2:-,4.3:-,4.4:-,4.5:β.
π SEE ALSO π
glActiveTexture()glCompressedTexImage1D()glCompressedTexImage2D()glCompressedTexImage3D()glCompressedTexSubImage2D()glCompressedTexSubImage3D()glCopyTexImage1D()glCopyTexImage2D()glCopyTexSubImage1D()glCopyTexSubImage2D()glCopyTexSubImage3D()glPixelStore()glTexImage2D()glTexImage3D()glTexSubImage1D()glTexSubImage2D()glTexSubImage3D()glTexParameter()
π COPYRIGHT π
Copyright Β© 1991-2006 Silicon Graphics, Inc. Copyright Β© 2010-2014 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.
π COPYRIGHT π
Copyright Β© 1991-2006 Silicon Graphics, Inc. Copyright Β© 2010-2014 Khronos Group
okay thatβs the whole page, bestie π the cute sign-off version of the footer is: source is [FIXME: source], dated 08/09/2021, and the manual name is GLCOMPRESSEDTEXSUBIM(3G) β iconic, no notes. π«Ά
π¦ 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