JSONLoader.html 1007 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <script src="../../list.js"></script>
  6. <script src="../../page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="../../page.css" />
  8. </head>
  9. <body>
  10. [page:Loader] <!-- &rarr -->;
  11. <h1>[name]</h1>
  12. <div class="desc">A loader for loading objects in JSON format.</div>
  13. <h2>Constructor</h2>
  14. <h3>[name]( [page:Boolean showStatus] )</h3>
  15. <h2>Properties</h2>
  16. <h2>Methods</h2>
  17. <h3>.load( [page:String url], [page:Function callback], [page:String texturePath] )</h3>
  18. <div>
  19. url — required<br />
  20. callback — required. This function will be called with the loaded model as an instance of [page:Geometry geometry] when the load is completed.<br />
  21. texturePath — optional. If not specified, textures will be assumed to be in the same folder as the Javascript model file.
  22. </div>
  23. <h2>Source</h2>
  24. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  25. </body>
  26. </html>