ImageLoader Class
ImageLoader can be used to load external image resources.
Item Index
Methods
Methods
loadJSON
(
-
url
-
onLoad
-
onProgress
-
onError
Load image resource from url.
Parameters:
-
url
String -
onLoad
Function -
onProgress
Function -
onError
Function
parse
(
Image
-
json
Parse image json and return resource.
Parameters:
-
json
Object
Returns:
Image:
Image resource
setCrossOrigin
(
ImageLoader
-
url
Set cross origin path for the loader.
Parameters:
-
url
StringURL.
Returns:
ImageLoader:
Self for chaining.
setPath
(
ImageLoader
-
path
Set base path for texture loading.
Parameters:
-
path
StringPath
Returns:
ImageLoader:
Self for chaining.