new ImageLoader() → {ImageLoader}
This object provides an interface for loading textures into Image
elements.
- Source:
Returns:
- Type
- ImageLoader
Members
-
image :Image
-
The Image element that is being loaded.
Type:
- Image
- Source:
-
onLoaded :Signal
-
This signal is dispatched when the Image has been loaded.
Type:
- Signal
- Source:
Methods
-
load(url, imageElement)
-
Loads a url into an Image element.
Parameters:
Name Type Description urlString The URL to load. imageElementImage An optional Image instance to load through. - Source:
-
loadResources(urls, callback)
-
Loads a list of URLs and calls the associated callback.
Parameters:
Name Type Description urlsString The List of URLs to load. callbackFunction A Function to call once the images have been loaded. - Source: