Class Texture2D

A two-dimensional texture.

Hierarchy

Constructors

Properties

gl: WebGL2RenderingContext

The rendering context of this texture.

height: undefined | number

The height of this texture.

internalFormat: TextureFormat

The format of the color components in this texture.

lod: number

The level of detail of this texture.

The pixel source for this texture.

The target binding point of this texture.

texture: WebGLTexture

The WebGL API interface of this texture.

width: undefined | number

The width of this texture.

Accessors

Methods

  • Assigns this texture to a texture unit.

    Parameters

    • textureUnit: number

      The texture unit.

    Returns void

Generated using TypeDoc