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:
-
urlString -
onLoadFunction -
onProgressFunction -
onErrorFunction
parse
(
Image
-
json
Parse image json and return resource.
Parameters:
-
jsonObject
Returns:
Image:
Image resource
setCrossOrigin
(
ImageLoader
-
url
Set cross origin path for the loader.
Parameters:
-
urlStringURL.
Returns:
ImageLoader:
Self for chaining.
setPath
(
ImageLoader
-
path
Set base path for texture loading.
Parameters:
-
pathStringPath
Returns:
ImageLoader:
Self for chaining.
