BinaryTextureLoader.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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, ...).
  14. This uses the [page:FileLoader] internally for loading files.
  15. </div>
  16. <h2>Examples</h2>
  17. <div>
  18. See the [link:https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/RGBELoader.js RGBELoader]
  19. for an example of a derived class.
  20. </div>
  21. <h2>Constructor</h2>
  22. <h3>[name]( [page:LoadingManager manager] )</h3>
  23. <div>
  24. [page:LoadingManager manager] — The [page:LoadingManager loadingManager] for the loader to use.
  25. Default is [page:LoadingManager THREE.DefaultLoadingManager].<br /><br />
  26. Creates a new [name].
  27. </div>
  28. <h2>Properties</h2>
  29. <h3>[property:LoadingManager manager]</h3>
  30. <div>
  31. The [page:LoadingManager loadingManager] the loader is using. Default is [page:DefaultLoadingManager].
  32. </div>
  33. <h2>Methods</h2>
  34. <h3>[method:null load]( [page:String url], [page:Function onLoad], [page:Function onProgress], [page:Function onError] )</h3>
  35. <div>
  36. [page:String url] — the path or URL to the file. This can also be a
  37. [link:https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs Data URI].<br />
  38. [page:Function onLoad] — Will be called when load completes. The argument will be the loaded texture.<br />
  39. [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 />
  40. [page:Function onError] — Will be called when load errors.<br />
  41. </div>
  42. <div>
  43. Begin loading from url and pass the loaded texture to onLoad.
  44. </div>
  45. <h2>Source</h2>
  46. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  47. </body>
  48. </html>