Class Texture2D

A two-dimensional texture.

Hierarchy

Constructors

Properties

formatPrivate: undefined | TextureFormat

The format of the texel data.

gl: WebGL2RenderingContext

The rendering context of this texture.

heightPrivate: undefined | number

The height of this texture.

internalFormatPrivate: TextureFormat

The format of the color components in this texture.

lodPrivate: number

The level of detail of this texture.

needsUpdate: boolean

Whether this texture needs to be updated.

pixelsPrivate: Texture2DPixelSource

The pixel source for this texture.

The target binding point of this texture.

texture: WebGLTexture

The WebGL API interface of this texture.

typePrivate: undefined | TextureDataType

The data type of the components in this texture.

widthPrivate: undefined | number

The width of this texture.

Accessors

  • get height(): undefined | number
  • The height of this texture.

    Returns undefined | number

  • set height(value: undefined | number): void
  • Parameters

    • value: undefined | number

    Returns void

  • get width(): undefined | number
  • The width of this texture.

    Returns undefined | number

  • set width(value: undefined | number): void
  • Parameters

    • value: undefined | number

    Returns void

Methods

  • Assigns this texture to a texture unit.

    Parameters

    • textureUnit: number

      The texture unit.

    Returns void

Generated using TypeDoc