Skip to content

API Reference / @gtkx/gl / createTexture

Function: createTexture()

createTexture(target): number

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

Returns one texture object name via glCreateTextures(..., 1, ...).

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

target

number

TextureTarget

Returns

number

GLuint, object class texture

Released under the MPL-2.0 License.