Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Callable

Index

Properties

Texture format.

height: number

Height of texture.

Texture magnification filter.

Texture minification filter.

stats: { size: number }

Type declaration

  • size: number

    Size of the texture in bytes.

Texture data type.

width: number

Width of texture.

Texture wrap mode on S axis.

Texture wrap mode on T axis.

Methods

  • destroy(): void
  • Replaces the part of texture with new data.

    Parameters

    • data: TextureImageData

      image data object, similar to arguments for the texture constructor

    • Optional x: number

      horizontal offset of the image within the texture (Default: 0)

    • Optional y: number

      vertical offset of the image within the texture (Default: 0)

    • Optional level: number

      mipmap level of the texture to modify (Default: 0)

    Returns Texture2D

  • Parameters

    • options: Texture2DOptions
    • Optional x: number
    • Optional y: number
    • Optional level: number

    Returns Texture2D

Generated using TypeDoc