TextureLoader.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. <h2>Events</h2>
  16. <h3>load</h3>
  17. <div class="desc">
  18. Dispatched when the texture has completed loading
  19. </div>
  20. <div>
  21. content — loaded texture object
  22. </div>
  23. <h3>error</h3>
  24. <div class="desc">
  25. Dispatched when the texture can't be loaded
  26. </div>
  27. <div>
  28. message — error message
  29. </div>
  30. <h2>Properties</h2>
  31. <h3>.[page:todo crossOrigin]</h3>
  32. <div>
  33. default — *null*.<br />
  34. If set, assigns the *crossOrigin* attribute of the image to the value of *crossOrigin*, prior to starting the load.
  35. </div>
  36. <h2>Methods</h2>
  37. <h3>.load( [page:String url] )</h3>
  38. <div>
  39. url — required
  40. </div>
  41. <div class="desc">Begin loading from <em>url</em></div>
  42. <h3>.dispatchEvent([page:todo event]) [page:todo]</h3>
  43. <div>
  44. event -- todo
  45. </div>
  46. <div>
  47. todo
  48. </div>
  49. <h3>.hasEventListener([page:todo type], [page:todo listener]) [page:todo]</h3>
  50. <div>
  51. type -- todo <br />
  52. listener -- todo
  53. </div>
  54. <div>
  55. todo
  56. </div>
  57. <h3>.removeEventListener([page:todo type], [page:todo listener]) [page:todo]</h3>
  58. <div>
  59. type -- todo <br />
  60. listener -- todo
  61. </div>
  62. <div>
  63. todo
  64. </div>
  65. <h3>.addEventListener([page:todo type], [page:todo listener]) [page:todo]</h3>
  66. <div>
  67. type -- todo <br />
  68. listener -- todo
  69. </div>
  70. <div>
  71. todo
  72. </div>
  73. <h2>Source</h2>
  74. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  75. </body>
  76. </html>