Class Mipmap<MipType>

A mipmap.

Type Parameters

  • MipType extends Mip

Hierarchy

  • Mipmap

Constructors

  • Creates a mipmap.

    Type Parameters

    • MipType extends Mip

    Parameters

    • Rest ...mips: MipType[]

      A map of the mips to their level of detail.

    Returns Mipmap<MipType>

Properties

mips: MipType[]

A map of the mips to their level of detail.

targetPrivate?: MipmapTarget

The target of this mipmap.

texturePrivate?: Texture<MipType>

The texture of this mipmap.

Accessors

  • get isTextureComplete(): boolean
  • Whether this mipmap is texture complete.

    Returns boolean

  • get top(): MipType
  • The top (most detailed) mip in this mipmap.

    Returns MipType

  • set top(value): void
  • The top (most detailed) mip in this mipmap.

    Parameters

    • value: MipType

    Returns void

Methods

  • Gets a mip.

    Parameters

    • level: number

      The level of the mip.

    Returns undefined | MipType

    The mip.

  • Sets a mip.

    Parameters

    • level: number

      The level of the mip.

    • mip: MipType

      The mip.

    Returns void

  • Updates this mipmap.

    Parameters

    • texture: Texture<MipType>

      The texture of this mipmap.

    • target: MipmapTarget

      The target of this this mipmap.

    Returns boolean

    Whether any updates were performed.

Generated using TypeDoc