TextureLoader.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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>Methods</h2>
  16. <h3>.load( [page:String url] )</h3>
  17. <div>
  18. url — required
  19. </div>
  20. <div class="desc">Begin loading from <em>url</em></div>
  21. <h2>Properties</h2>
  22. <h3>.crossOrigin</h3>
  23. <div>
  24. default — *null*.<br />
  25. If set, assigns the *crossOrigin* attribute of the image to the value of *crossOrigin*, prior to starting the load.
  26. </div>
  27. <h2>Events</h2>
  28. <h3>load</h3>
  29. <div class="desc">
  30. Dispatched when the texture has completed loading
  31. </div>
  32. <div>
  33. content — loaded texture object
  34. </div>
  35. <h3>error</h3>
  36. <div class="desc">
  37. Dispatched when the texture can't be loaded
  38. </div>
  39. <div>
  40. message — error message
  41. </div>
  42. <h2>Source</h2>
  43. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  44. </body>
  45. </html>