gameforge - v0.1.12
    Preparing search index...

    Class TextureSystem

    System plugin to the renderer to manage textures.

    PIXI

    Implements

    Index

    Constructors

    Properties

    Bound textures.

    CONTEXT_UID: number
    currentLocation: number

    Current location.

    emptyTextures: { [key: number]: GLTexture }
    hasIntegerTextures: boolean

    Whether glTexture with int/uint sampler type was uploaded.

    internalFormats: { [type: number]: { [format: number]: number } }

    List of managed textures.

    samplerTypes: Record<number, SAMPLER_TYPES>
    unknownTexture: BaseTexture

    BaseTexture value that shows that we don't know what is bound.

    webGLVersion: number

    Methods

    • Sets up the renderer context and necessary buffers.

      Returns void

    • Generic destroy methods to be overridden by the subclass

      Returns 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

    • Resets texture location and bound textures Actual bind(null, i) calls will be performed at next unbind() call

      Returns void