Loader.html 2.1 KB

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