[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]()

todo

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

Properties

.[page:todo crossOrigin]

default — *null*.
If set, assigns the *crossOrigin* attribute of the image to the value of *crossOrigin*, prior to starting the load.

Methods

.load( [page:String url] )

url — required
Begin loading from url

.dispatchEvent([page:todo event]) [page:todo]

event -- todo
todo

.hasEventListener([page:todo type], [page:todo listener]) [page:todo]

type -- todo
listener -- todo
todo

.removeEventListener([page:todo type], [page:todo listener]) [page:todo]

type -- todo
listener -- todo
todo

.addEventListener([page:todo type], [page:todo listener]) [page:todo]

type -- todo
listener -- todo
todo

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]