JSONLoader.html 1.6 KB

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