[name]
Class for loading a [page:Texture texture].
Unlike other loaders, this one emits events instead of using predefined callbacks. So if you're interested in getting notified when things happen, you need to add listeners to the object.
Constructor
[name]()
Methods
.load( [page:String url] )
url — required
Begin loading from url
Properties
.crossOrigin
default — *null*.
If set, assigns the *crossOrigin* attribute of the image to the value of *crossOrigin*, prior to starting the load.
Events
load
Dispatched when the texture has completed loading
content — loaded texture object
error
Dispatched when the texture can't be loaded
message — error message
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]