You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[page:String url] - A string containing the path/URL of the file to be loaded.<br>
417
+
[page:Function onLoad] - A function to be called after loading is successfully completed. The function receives loaded [page:Object3D] as an argument.<br>
418
+
[page:Function onProgress] - (optional) A function to be called while the loading is in progress. The argument will be the XMLHttpRequest instance, which contains [page:Integer total] and [page:Integer loaded] bytes.<br>
419
+
[page:Function onError] - (optional) A function to be called if an error occurs during loading. The function receives the error as an argument.<br>
420
+
[page:Function onMeshAlter] - (optional) A function to be called after a new mesh raw data becomes available for alteration.<br>
421
+
[page:boolean useAsync] - (optional) If true, uses async loading with worker, if false loads data synchronously.
422
+
</div>
423
+
<div>
424
+
Use this convenient method to load a file at the given URL. By default the fileLoader uses an ArrayBuffer.
[page:THREE.LoaderSupport.ResourceDescriptor resources] - Array of {@link THREE.LoaderSupport.ResourceDescriptor}
430
+
[page:Object fileDesc] - Object describing which resources are of interest (ext, type (string or UInt8Array) and ignore (boolean))
431
+
</div>
432
+
<div>
433
+
Identify files or content of interest from an Array of {@link THREE.LoaderSupport.ResourceDescriptor}. Returns Object with each "ext" and the corresponding {@link THREE.LoaderSupport.ResourceDescriptor}
[page:LoadingManager manager] - The [page:LoadingManager loadingManager] for the loader to use. Default is [page:LoadingManager THREE.DefaultLoadingManager].
45
+
[page:LoadingManager manager] - The [page:LoadingManager loadingManager] for the loader to use. Default is [page:LoadingManager THREE.DefaultLoadingManager].<br>
46
46
[page:LoaderSupport.ConsoleLogger logger] - logger to be used
[page:String url] - A string containing the path/URL of the <em>.obj</em> file.<br>
77
-
[page:Function onLoad] - A function to be called after loading is successfully completed. The function receives loaded [page:Object3D] as an argument.<br>
78
-
[page:Function onProgress] - (optional) A function to be called while the loading is in progress. The argument will be the XMLHttpRequest instance, which contains [page:Integer total] and [page:Integer loaded] bytes.<br>
79
-
[page:Function onError] - (optional) A function to be called if an error occurs during loading. The function receives the error as an argument.<br>
80
-
[page:Function onMeshAlter] - (optional) A function to be called after a new mesh raw data becomes available for alteration.<br>
81
-
[page:boolean useAsync] - (optional) If true, uses async loading with worker, if false loads data synchronously.
82
-
</div>
83
-
<div>
84
-
Use this convenient method to load an OBJ file at the given URL. By default the fileLoader uses an arraybuffer.
* Use this convenient method to load a file at the given URL. By default the fileLoader uses an ArrayBuffer.
953
+
* @memberOf THREE.LoaderSupport.LoaderBase
954
+
*
955
+
* @param {string} url A string containing the path/URL of the file to be loaded.
956
+
* @param {callback} onLoad A function to be called after loading is successfully completed. The function receives loaded Object3D as an argument.
957
+
* @param {callback} [onProgress] A function to be called while the loading is in progress. The argument will be the XMLHttpRequest instance, which contains total and Integer bytes.
958
+
* @param {callback} [onError] A function to be called if an error occurs during loading. The function receives the error as an argument.
959
+
* @param {callback} [onMeshAlter] A function to be called after a new mesh raw data becomes available for alteration.
960
+
* @param {boolean} [useAsync] If true, uses async loading with worker, if false loads data synchronously.
0 commit comments