Loader.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. <h1>[name]</h1>
  11. <div class="desc">Base class for implementing loaders.</div>
  12. <h2>Constructor</h2>
  13. <h3>[name]( [page:Boolean showStatus] )</h3>
  14. <h2>Properties</h2>
  15. <h3>.[page:Boolean showStatus]</h3>
  16. <div>If true, show loading status in the statusDomElement.</div>
  17. <h3>.[page:DOMElement statusDomElement]</h3>
  18. <div>This is the recipient of status messages.</div>
  19. <h3>.[page:Function onLoadStart]</h3>
  20. <div>Will be called when load starts.</div>
  21. <div>The default is a function with empty body.</div>
  22. <h3>.[page:Function onLoadProgress]</h3>
  23. <div>Will be called while load progresses.</div>
  24. <div>The default is a function with empty body.</div>
  25. <h3>.[page:Function onLoadComplete]</h3>
  26. <div>Will be called when load completes.</div>
  27. <div>The default is a function with empty body.</div>
  28. <h3>.[page:string crossOrigin]</h3>
  29. <div>
  30. todo
  31. </div>
  32. <h2>Methods</h2>
  33. <h3>.needsTangents([page:todo materials]) [page:todo]</h3>
  34. <div>
  35. materials -- todo
  36. </div>
  37. <div>
  38. todo
  39. </div>
  40. <h3>.updateProgress([page:todo progress]) [page:todo]</h3>
  41. <div>
  42. progress -- todo
  43. </div>
  44. <div>
  45. todo
  46. </div>
  47. <h3>.createMaterial([page:todo m], [page:todo texturePath]) [page:todo]</h3>
  48. <div>
  49. m -- todo <br />
  50. texturePath -- todo
  51. </div>
  52. <div>
  53. todo
  54. </div>
  55. <h3>.initMaterials([page:todo materials], [page:todo texturePath]) [page:todo]</h3>
  56. <div>
  57. materials -- todo <br />
  58. texturePath -- todo
  59. </div>
  60. <div>
  61. todo
  62. </div>
  63. <h3>.extractUrlBase([page:todo url]) [page:todo]</h3>
  64. <div>
  65. url -- todo
  66. </div>
  67. <div>
  68. todo
  69. </div>
  70. <h3>.addStatusElement() [page:todo]</h3>
  71. <div>
  72. todo
  73. </div>
  74. <h2>Source</h2>
  75. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  76. </body>
  77. </html>