Hierarchy

  • CoreTextureManager

Constructors

Properties

frameTime: number = 0

The current frame time in milliseconds

Remarks

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
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

Remarks

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

  • Remove a texture from the cache

    Parameters

    Returns void

    Remarks

    Called by Texture Cleanup when a texture is freed.

Generated using TypeDoc