Skip to content

Commit

Permalink
LoadingMonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
sole committed Aug 6, 2012
1 parent 50f1811 commit 0ff2a4f
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
48 changes: 48 additions & 0 deletions docs/api/loaders/LoadingMonitor.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!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">A LoadingMonitor keeps track of loaded and pending data.</div>
<div class="desc">To keep track of a loader, just add it to the monitor:</div>
<code>monitor.add( imageLoader );
</code>

<h2>Constructor</h2>

<h3>[name]()</h3>

<h2>Events</h2>

<h3>progress</h3>
<div class="desc">
Dispatched each time a monitored loader completes loading
</div>
<div>
loaded — number of completed loaders<br />
total — total number of loaders monitored by this monitor
</div>

<h3>load</h3>
<div id="desc">
Dispatched when all loaders have completed loading
</div>

<h2>Methods</h2>

<h3>.add( [page:Loader loader] )</h3>
<div>
loader — required. Loader to be monitored.
</div>

<h2>Source</h2>

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>
1 change: 1 addition & 0 deletions docs/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ var list = {
[ "GeometryLoader", "loaders/GeometryLoader" ],
[ "ImageLoader", "loaders/ImageLoader" ],
[ "JSONLoader", "loaders/JSONLoader" ],
[ "LoadingMonitor", "loaders/LoadingMonitor" ],
[ "SceneLoader", "loaders/SceneLoader" ],
],

Expand Down

0 comments on commit 0ff2a4f

Please sign in to comment.