Options
All
  • Public
  • Public/Protected
  • All
Menu

System plugin to the renderer to manage textures.

memberof

PIXI

Hierarchy

Index

Constructors

constructor

Properties

Protected CONTEXT_UID

CONTEXT_UID: number

Protected _unknownBoundTextures

_unknownBoundTextures: boolean

boundTextures

currentLocation

currentLocation: number

emptyTextures

emptyTextures: {}

Type declaration

Protected gl

Protected hasIntegerTextures

hasIntegerTextures: boolean

Whether glTexture with int/uint sampler type was uploaded.

managedTextures

renderer

renderer: Renderer

Protected unknownTexture

Protected webGLVersion

webGLVersion: number

Methods

bind

  • Bind a texture to a specific location

    If you want to unbind something, please use unbind(texture) instead of bind(null, textureLocation)

    Parameters

    Returns void

contextChange

  • contextChange(): void
  • Sets up the renderer context and necessary buffers.

    Returns void

destroy

  • destroy(): void
  • Generic destroy methods to be overridden by the subclass

    Returns void

Private destroyTexture

ensureSamplerType

  • ensureSamplerType(maxTextures: number): void
  • Ensures that current boundTextures all have FLOAT sampler type, see PIXI.SAMPLER_TYPES for explanation.

    Parameters

    • maxTextures: number

      number of locations to check

    Returns void

Private initTexture

initTextureType

reset

  • reset(): void
  • Resets texture location and bound textures

    Actual bind(null, i) calls will be performed at next unbind() call

    Returns void

Private setStyle

unbind

Private updateTexture

Private updateTextureStyle

  • Update texture style such as mipmap flag

    Parameters

    Returns void

Generated using TypeDoc