EventEmitter base class

Hierarchy (view full)

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.

hasCreateImageBitmap: boolean = !!self.createImageBitmap
hasWorker: boolean = !!self.Worker
imageBitmapSupported: {
    basic: boolean;
    full: boolean;
    options: boolean;
} = ...
imageWorkerManager: null | ImageWorkerManager = null
inverseKeyCache: WeakMap<Texture, string> = ...

Map of cache keys by texture

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

Map of textures by cache key

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

  • Parameters

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

          • target: any
          • data: any

          Returns void

    Returns void

  • Parameters

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

          • target: any
          • data: any

          Returns void

    Returns void

  • Parameters

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

          • target: any
          • data: any

          Returns void

    Returns void

  • Remove a texture from the cache

    Parameters

    Returns void

    Called by Texture Cleanup when a texture is freed.