Static CACHE_The duration in milliseconds for which a texture will remain cached
Static loaderA global reference to the singleton texture loader
Static Private #cacheRecord the timestamps when each asset path is retrieved from cache.
Static Private #textureA mapping of cached texture data
Static Private #retryCreate a fixed retry string to use for CORS retries.
Static Private #basisTo know if the basis transcoder has been initialized
Load an Array of provided source URL paths
The source URLs to load
Optional options: { Additional options which modify loading
The status message to display in the load bar
Expire other cached textures?
The maximum number of textures that can be loaded concurrently.
Display loading progress bar
A Promise which resolves once all textures are loaded
Static initializeStatic hasStatic getUse the texture to create a cached mapping of pixel alpha and cache it. Cache the bounding box of non-transparent pixels for the un-rotated shape.
The provided texture.
Optional resolution: number = 1Resolution of the texture data output.
The texture data if the texture is valid, else undefined.
Static loadLoad all the textures which are required for a particular Scene
The Scene to load
Optional options: { Additional options that configure texture loading
Destroy other expired textures
Additional sources to load during canvas initialize
The maximum number of textures that can be loaded concurrently
Static fetchUse the Fetch API to retrieve a resource and return a Blob instance for it.
Optional options: { Options to configure the loading behaviour.
Append a cache-busting query parameter to the request.
A Blob containing the loaded data
Static getStatic Private #onStatic Private #on
A Loader class which helps with loading video and image textures.