[name]
A loader for loading an [page:Image image].
Constructor
[name]([page:LoadingManager manager)
manager -- The [page:LoadingManager loadingManager] for the loader to use. Default is [page:LoadingManager THREE.DefaultLoadingManager].
Creates a new [name].
Properties
.[page:string crossOrigin]
The crossOrigin string to implement CORS for loading the url from a different domain that allows CORS.
Methods
.load( [page:String url], [page:Function onLoad], [page:Function onProgress], [page:Function onError] ) [page:Image]
onLoad -- Will be called when load completes. The argument will be the loaded Imageloader.
onProgress -- Will be called while load progresses. The argument will be the progress event.
onError -- Will be called when load errors.
url — required
Begin loading from url and return the [page:Image image] object that will contain the data.
.setCrossOrigin([page:String value])
value -- The crossOrigin string.
The crossOrigin string to implement CORS for loading the url from a different domain that allows CORS.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]