Loader.html 2.1 KB
Newer Older
M
r59  
Mr.doob 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
<!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">Base class for implementing loaders.</div>


		<h2>Constructor</h2>


		<h3>[name]([page:Boolean showStatus])</h3>
		<div>
		showStatus -- todo
		</div>
		<div>
		todo
		</div>


		<h2>Properties</h2>

		<h3>.[page:Boolean showStatus]</h3>
		<div>If true, show loading status in the statusDomElement.</div>
		
		<h3>.[page:DOMElement statusDomElement]</h3>
		<div>This is the recipient of status messages.</div>
		
		<h3>.[page:Function onLoadStart]</h3>
		<div>Will be called when load starts.</div>
		<div>The default is a function with empty body.</div>

		<h3>.[page:Function onLoadProgress]</h3>
		<div>Will be called while load progresses.</div>
		<div>The default is a function with empty body.</div>
		
		<h3>.[page:Function onLoadComplete]</h3>
		<div>Will be called when load completes.</div>
		<div>The default is a function with empty body.</div>
		
		<h3>.[page:string crossOrigin]</h3>
		<div>
		todo
		</div> 

		<h2>Methods</h2>

		<h3>.needsTangents([page:todo materials]) [page:todo]</h3>
		<div>
		materials -- todo
		</div>
		<div>
		todo
		</div>

		<h3>.updateProgress([page:todo progress]) [page:todo]</h3>
		<div>
		progress -- todo
		</div>
		<div>
		todo
		</div>

		<h3>.createMaterial([page:todo m], [page:todo texturePath]) [page:todo]</h3>
		<div>
		m -- todo <br />
		texturePath -- todo
		</div>
		<div>
		todo
		</div>

		<h3>.initMaterials([page:todo materials], [page:todo texturePath]) [page:todo]</h3>
		<div>
		materials -- todo <br />
		texturePath -- todo
		</div>
		<div>
		todo
		</div>

		<h3>.extractUrlBase([page:todo url]) [page:todo]</h3>
		<div>
		url -- todo
		</div>
		<div>
		todo
		</div>

		<h3>.addStatusElement() [page:todo]</h3>
		<div>
		todo
		</div>


		<h2>Source</h2>

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