Skip to content

API Reference / @gtkx/gl / getTextureImage

Function: getTextureImage()

getTextureImage(texture, level, format, type, bufSize, pixels): void

Defined in: generated/commands.d.ts:3132

void glGetTextureImage(GLuint texture, GLint level, GLenum format, GLenum type, 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

format

number

PixelFormat

type

number

PixelType

bufSize

number

GLsizei

pixels

number | ArrayBufferView<ArrayBufferLike> | null

ArrayBufferView | GLintptr | null, length bufSize

Returns

void

Released under the MPL-2.0 License.