Skip to content

API Reference / @gtkx/gl / copyTextureSubImage2D

Function: copyTextureSubImage2D() ​

copyTextureSubImage2D(texture, level, xoffset, yoffset, x, y, width, height): void

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

void glCopyTextureSubImage2D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)

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

xoffset ​

number

GLint

yoffset ​

number

GLint

x ​

number

GLint

y ​

number

GLint

width ​

number

GLsizei

height ​

number

GLsizei

Returns ​

void