Skip to content

API Reference / @gtkx/gl / getCompressedTextureImage

Function: getCompressedTextureImage() ​

getCompressedTextureImage(texture, level, bufSize, pixels): void

Defined in: packages/gl/src/generated/commands.ts:3141

void glGetCompressedTextureImage(GLuint texture, GLint level, GLsizei bufSize, void *pixels)

Provided by GL_VERSION_4_5. Registry note: Reuse GL_ARB_direct_state_access Also provided by the GL_ARB_direct_state_access extension. GL_ARB_direct_state_access note: Texture object functions.

Parameters ​

texture ​

number

GLuint, object class texture

level ​

number

GLint

bufSize ​

number

GLsizei

pixels ​

GLpointer | ArrayBufferView<ArrayBufferLike> | null

ArrayBufferView | GLpointer | null, length bufSize

Returns ​

void