1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <script src="../../list.js"></script>
- <script src="../../page.js"></script>
- <link type="text/css" rel="stylesheet" href="../../page.css" />
- </head>
- <body>
- <h1>[name]</h1>
- <div class="desc">Handles and keeps track of loaded and pending data.</div>
- <code>
- var manager = new THREE.LoadingManager();
- manager.onProgress = function ( item, loaded, total ) {
- console.log( item, loaded, total );
- };
- var loader = new THREE.OBJLoader( manager );
- loader.load( 'file.obj', function ( object ) {
- //
- } );
- </code>
- <h2>Constructor</h2>
- <h3>[name]([page:function onLoad], [page:function onProgress], [page:function onError])</h3>
- <div>
- [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>[property:function onLoad]</h3>
- <div>
- The function that needs to be called when all loaders are done.
- </div>
- <h3>[property: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>[property:function onError]</h3>
- <div>
- The function that needs to be called when an item errors.
- </div>
-
-
- <h2>Methods</h2>
- <h3>[method:todo 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>[method:todo 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>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </body>
- </html>
|