Skip to main content
Version: 4.1.0

createTextureFromArray

Callable

  • createTextureFromArray(gl: WebGL2RenderingContext, data: Uint8Array | Float32Array, texIndex?: number, components?: number): WebGLTexture

  • Parameters

    • gl: WebGL2RenderingContext
    • data: Uint8Array | Float32Array
    • texIndex: number = WebGL2RenderingContext.TEXTURE0
    • components: number = 1

    Returns WebGLTexture