JSONLoader.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. <h3>.[page:boolean withCredentials]</h3>
  17. <div>
  18. todo
  19. </div>
  20. <h2>Methods</h2>
  21. <h3>.load( [page:String url], [page:Function callback], [page:String texturePath] )</h3>
  22. <div>
  23. url — required<br />
  24. callback — required. This function will be called with the loaded model as an instance of [page:Geometry geometry] when the load is completed.<br />
  25. texturePath — optional. If not specified, textures will be assumed to be in the same folder as the Javascript model file.
  26. </div>
  27. <h3>.parse([page:todo json], [page:todo texturePath]) [page:todo]</h3>
  28. <div>
  29. json -- todo <br />
  30. texturePath -- todo
  31. </div>
  32. <div>
  33. todo
  34. </div>
  35. <h3>.loadAjaxJSON([page:todo context], [page:todo url], [page:todo callback], [page:todo texturePath], [page:todo callbackProgress]) [page:todo]</h3>
  36. <div>
  37. context -- todo <br />
  38. url -- todo <br />
  39. callback -- todo <br />
  40. texturePath -- todo <br />
  41. callbackProgress -- todo
  42. </div>
  43. <div>
  44. todo
  45. </div>
  46. <h2>Source</h2>
  47. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  48. </body>
  49. </html>