Skip to content

API Reference / @gtkx/gl / textureSubImage1D

Function: textureSubImage1D() ​

textureSubImage1D(texture, level, xoffset, width, format, type, pixels): void

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

void glTextureSubImage1D(GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const 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

xoffset ​

number

GLint

width ​

number

GLsizei

format ​

number

PixelFormat

type ​

number

PixelType

pixels ​

GLpointer | ArrayBufferView<ArrayBufferLike> | null

ArrayBufferView | GLpointer | null

Returns ​

void