@lightningjs/renderer
    Preparing search index...

    Class CoreTextureManager

    EventEmitter base class

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    frameTime: number = 0

    The current frame time in milliseconds

    This is used to populate the lastRenderableChangeTime property of Texture instances when their renderable state changes.

    Set by stage via updateFrameTime method.

    inverseKeyCache: WeakMap<Texture, string> = ...

    Map of cache keys by texture

    keyCache: Map<string, Texture> = ...

    Map of textures by cache key

    maxRetryCount: number
    platform: Platform
    renderer: CoreRenderer

    Renderer that this texture manager is associated with

    This MUST be set before the texture manager is used. Otherwise errors will occur when using the texture manager.

    txConstructors: Partial<TextureMap> = {}

    Map of texture constructors by their type name

    Methods

    • Override loadTexture to use the batched approach.

      Parameters

      • texture: Texture

        The texture to load

      • Optionalpriority: boolean

      Returns Promise<void>

    • Parameters

      • event: string
      • Optionallistener: (target: any, data: any) => void

      Returns void

    • Process a limited number of uploads.

      Parameters

      • maxProcessingTime: number

        The maximum processing time in milliseconds

      Returns Promise<void>