|
@@ -11,8 +11,9 @@
|
|
|
<h1>[name]</h1>
|
|
|
|
|
|
<p class="desc">
|
|
|
- A loader for loading an [page:Image] as an [link:https://developer.mozilla.org/de/docs/Web/API/ImageBitmap ImageBitmap]. An ImageBitmap provides an asynchronous and resource efficient pathway to prepare textures for rendering in WebGL.
|
|
|
-
|
|
|
+ A loader for loading an [page:Image] as an [link:https://developer.mozilla.org/de/docs/Web/API/ImageBitmap ImageBitmap].
|
|
|
+ An ImageBitmap provides an asynchronous and resource efficient pathway to prepare textures for rendering in WebGL.<br/>
|
|
|
+ Unlike [page:FileLoader], [name] does not avoid multiple concurrent requests to the same URL.
|
|
|
</p>
|
|
|
|
|
|
<h2>Example</h2>
|
|
@@ -76,7 +77,7 @@
|
|
|
[page:String url] — the path or URL to the file. This can also be a
|
|
|
[link:https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs Data URI].<br />
|
|
|
[page:Function onLoad] — Will be called when load completes. The argument will be the loaded [page:Image image].<br />
|
|
|
- [page:Function onProgress] — Will be called while load progresses. The argument will be the progress event.<br />
|
|
|
+ [page:Function onProgress] — This callback function is currently not supported.<br />
|
|
|
[page:Function onError] — Will be called when load errors.<br />
|
|
|
</p>
|
|
|
<p>
|