DataTextureLoader.html 2.0 KB

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