|
@@ -28,9 +28,52 @@ loader.load( 'file.obj', function ( object ) {
|
|
|
|
|
|
<h2>Constructor</h2>
|
|
|
|
|
|
- <h3>[name]()</h3>
|
|
|
+ <h3>[name]([page:function onLoad], [page:function onProgress], [page:function onError])</h3>
|
|
|
<div>
|
|
|
- todo
|
|
|
+ [page:function onLoad] -- The function that needs to be called when all loaders are done.
|
|
|
+ [page:function onProgress] -- The function that needs to be called when an item is complete.
|
|
|
+ [page:function onError] -- The function that needs to be called when an item is errors.
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ Creates a [name].
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <h2>Properties</h2>
|
|
|
+
|
|
|
+ <h3>.[page:function onLoad]</h3>
|
|
|
+ <div>
|
|
|
+ The function that needs to be called when all loaders are done.
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <h3>.[page:function onProgress]</h3>
|
|
|
+ <div>
|
|
|
+ The function that needs to be called when an item is complete. The arguments are url(The url of the item just loaded),<br />
|
|
|
+ loaded(the amount of items already loaded), total( The total amount of items to be loaded.)
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <h3>.[page:function onError]</h3>
|
|
|
+ <div>
|
|
|
+ The function that needs to be called when an item errors.
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <h2>Methods</h2>
|
|
|
+
|
|
|
+ <h3>.itemStart( [page:String url] )</h3>
|
|
|
+ <div>
|
|
|
+ url — the url to load
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ This should be called by any loader used by the manager when the loader starts loading an url. These shouldn't be called outside a loader.
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <h3>.itemEnd( [page:String url] )</h3>
|
|
|
+ <div>
|
|
|
+ url — the url to load
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ This should be called by any loader used by the manager when the loader ended loading an url. These shouldn't be called outside a loader.
|
|
|
</div>
|
|
|
|
|
|
<h2>Source</h2>
|