BinaryTextureLoader.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>[name]</h1>
  12. <div class="desc">
  13. Abstract base class to load generic binary textures formats (rgbe, hdr, ...).<br /><br />
  14. </div>
  15. <h2>Examples</h2>
  16. <div>
  17. See the [link:https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/RGBELoader.js RGBELoader]
  18. for an example of a derived class.
  19. </div>
  20. <h2>Constructor</h2>
  21. <h3>[name]( [page:LoadingManager manager] )</h3>
  22. <div>
  23. [page:LoadingManager manager] — The [page:LoadingManager loadingManager] for the loader to use.
  24. Default is [page:LoadingManager THREE.DefaultLoadingManager].<br /><br />
  25. Creates a new [name].
  26. </div>
  27. <h2>Properties</h2>
  28. <h3>[property:LoadingManager loadingManager]</h3>
  29. <div>
  30. loadingManager — the LoadingManager supplied in the constructor, or the [page:LoadingManager THREE.DefaultLoadingManager].<br />
  31. </div>
  32. <h2>Methods</h2>
  33. <h3>[method:null load]( [page:String url], [page:Function onLoad], [page:Function onProgress], [page:Function onError] )</h3>
  34. <div>
  35. [page:String url] — required<br />
  36. [page:Function onLoad] — Will be called when load completes. The argument will be the loaded texture.<br />
  37. [page:Function onProgress] — Will be called while load progresses. The argument will be the XmlHttpRequest instance, that contain .[page:Integer total] and .[page:Integer loaded] bytes.<br />
  38. [page:Function onError] — Will be called when load errors.<br />
  39. </div>
  40. <div>
  41. Begin loading from url and pass the loaded texture to onLoad.
  42. </div>
  43. <h2>Source</h2>
  44. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  45. </body>
  46. </html>