|
@@ -36,6 +36,9 @@
|
|
|
// Specify path to a folder containing WASM/JS decoding libraries.
|
|
|
loader.setDecoderPath( '/examples/js/libs/draco/' );
|
|
|
|
|
|
+ // Optional: Pre-fetch Draco WASM/JS module.
|
|
|
+ loader.preload();
|
|
|
+
|
|
|
// Load a Draco geometry
|
|
|
loader.load(
|
|
|
// resource URL
|
|
@@ -128,6 +131,11 @@
|
|
|
in the application.
|
|
|
</p>
|
|
|
|
|
|
+ <h3>[method:this preload]()</h3>
|
|
|
+ <p>
|
|
|
+ Requests the decoder libraries, if not already loaded.
|
|
|
+ </p>
|
|
|
+
|
|
|
<h3>[method:this dispose]()</h3>
|
|
|
<p>
|
|
|
Disposes of the decoder resources and deallocates memory. The decoder
|