TextureLoader.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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">Class for loading a [page:Texture texture].</div>
  12. <div class="desc">Unlike other loaders, this one emits events instead of using predefined callbacks. So if you're interested in getting notified when <em>things</em> happen, you need to add listeners to the object.</div>
  13. <h2>Constructor</h2>
  14. <h3>[name]()</h3>
  15. <div>
  16. todo
  17. </div>
  18. <h2>Events</h2>
  19. <h3>load</h3>
  20. <div class="desc">
  21. Dispatched when the texture has completed loading
  22. </div>
  23. <div>
  24. content — loaded texture object
  25. </div>
  26. <h3>error</h3>
  27. <div class="desc">
  28. Dispatched when the texture can't be loaded
  29. </div>
  30. <div>
  31. message — error message
  32. </div>
  33. <h2>Properties</h2>
  34. <h3>.[page:todo crossOrigin]</h3>
  35. <div>
  36. default — *null*.<br />
  37. If set, assigns the *crossOrigin* attribute of the image to the value of *crossOrigin*, prior to starting the load.
  38. </div>
  39. <h2>Methods</h2>
  40. <h3>.load( [page:String url] )</h3>
  41. <div>
  42. url — required
  43. </div>
  44. <div class="desc">Begin loading from <em>url</em></div>
  45. <h3>.dispatchEvent([page:todo event]) [page:todo]</h3>
  46. <div>
  47. event -- todo
  48. </div>
  49. <div>
  50. todo
  51. </div>
  52. <h3>.hasEventListener([page:todo type], [page:todo listener]) [page:todo]</h3>
  53. <div>
  54. type -- todo <br />
  55. listener -- todo
  56. </div>
  57. <div>
  58. todo
  59. </div>
  60. <h3>.removeEventListener([page:todo type], [page:todo listener]) [page:todo]</h3>
  61. <div>
  62. type -- todo <br />
  63. listener -- todo
  64. </div>
  65. <div>
  66. todo
  67. </div>
  68. <h3>.addEventListener([page:todo type], [page:todo listener]) [page:todo]</h3>
  69. <div>
  70. type -- todo <br />
  71. listener -- todo
  72. </div>
  73. <div>
  74. todo
  75. </div>
  76. <h2>Source</h2>
  77. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  78. </body>
  79. </html>