[name]

Base class for implementing loaders.

Constructor

[name]([page:Boolean showStatus])

showStatus -- Show the status of loading div.
Creates a new [name]. This should be called as base class.

Properties

.[page:Boolean showStatus]

If true, show loading status in the statusDomElement.

.[page:DOMElement statusDomElement]

This is the recipient of status messages.

.[page:Function onLoadStart]

Will be called when load starts.
The default is a function with empty body.

.[page:Function onLoadProgress]

Will be called while load progresses.
The default is a function with empty body.

.[page:Function onLoadComplete]

Will be called when load completes.
The default is a function with empty body.

.[page:string crossOrigin]

The crossOrigin string to implement CORS for loading the url from a different domain that allows CORS.

Methods

.needsTangents([page:Array materials]) [page:todo]

materials -- an array of [page:Material]
Checks if the loaded object needs tangents based on its materials.

.updateProgress([page:object progress]) [page:todo]

progress -- an object containing loaded(contains the amount of bytes loaded) and optionally total (containing the total amount of bytes).
Updates the DOM object with the progress made.

.createMaterial([page:object m], [page:string texturePath]) [page:todo]

m -- The parameters to create the material.
texturePath -- The base path of the textures.
Creates the Material based on the parameters m.

.initMaterials([page:todo materials], [page:todo texturePath]) [page:todo]

materials -- todo
texturePath -- todo
todo

.extractUrlBase([page:todo url]) [page:todo]

url -- todo
todo

.addStatusElement() [page:todo]

todo

Source

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