ImageLoader.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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">A loader for loading an [page:Image image].</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>Events</h2>
  22. <h3>load</h3>
  23. <div class="desc">
  24. Dispatched when the image has completed loading
  25. </div>
  26. <div>
  27. content — loaded image
  28. </div>
  29. <h3>error</h3>
  30. <div class="desc">
  31. Dispatched when the image can't be loaded
  32. </div>
  33. <div>
  34. message — error message
  35. </div>
  36. <h2>Source</h2>
  37. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  38. </body>
  39. </html>