Load an Array of provided source URL paths
The source URLs to load
Additional options which modify loading
A Promise which resolves once all textures are loaded
Load a single texture or spritesheet on-demand from a given source URL path
The source texture path to load
The loaded texture object
Add an image or a sprite sheet url to the assets cache.
The source URL.
The asset
Retrieve a texture or a sprite sheet from the assets cache
The source URL
The cached texture, a sprite sheet or undefined
Expire and unload assets from the cache which have not been used for more than CACHE_TTL milliseconds.
Check if a source has a text file extension.
The source.
If the source has a text extension or not.
Load all the textures which are required for a particular Scene
The Scene to load
Additional options that configure texture loading
Use the Fetch API to retrieve a resource and return a Blob instance for it.
Options to configure the loading behaviour.
A Blob containing the loaded data
Return a URL with a cache-busting query parameter appended.
The source URL being attempted
The new URL, or false on a failure.
Log texture loading progress in the console and in the Scene loading bar
The source URL being loaded
Loading progress
Log failed texture loading
The source URL being loaded
Loading progress
The error which occurred
The duration in milliseconds for which a texture will remain cached
A mapping of url to cached texture buffer data
Record the timestamps when each asset path is retrieved from cache.
Create a fixed retry string to use for CORS retries.
A Loader class which helps with loading video and image textures.