123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <base href="../../../" />
- <script src="list.js"></script>
- <script src="page.js"></script>
- <link type="text/css" rel="stylesheet" href="page.css" />
- </head>
- <body>
- <h1>[name]</h1>
- <p class="desc">所有加载器的基类</p>
- <h2>构造方法</h2>
- <h3>[name]()</h3>
- <p>
- 当创建一个新的 [name], 将调用此基类。
- </p>
- <h2>属性</h2>
- <h3>[property:Function onLoadStart]</h3>
- <p>当加载开始时,将被调用。</p>
- <p>默认实现是一个空函数体。</p>
- <h3>[property:Function onLoadProgress]</h3>
- <p>当进入加载流程中,将被调用。</p>
- <p>默认实现是一个空函数体。</p>
- <h3>[property:Function onLoadComplete]</h3>
- <p>当加载完成时,将被调用。</p>
- <p>默认实现是一个空函数体。</p>
- <h3>[property:string crossOrigin]</h3>
- <p>
- 跨域字符串,用于实现跨域,以便从允许CORS从其他域加载url。默认为"anonymous"。
- </p>
- <h2>Methods</h2>
- <h3>[method:Material createMaterial]( [param:object m], [param:string texturePath] )</h3>
- <p>
- [page:Object m] — 所要创建的材质的参数。 <br />
- [page:String texturePath] — 纹理加载路径。
- </p>
- <p>
- 基于参数m来创建材质。
- </p>
- <h3>[method:Array initMaterials]( [param:Array materials], [param:string texturePath] )</h3>
- <p>
- [page:Array materials] — 用于创建材质的参数数组。 <br />
- [page:String texturePath] — 纹理加载路径。
- </p>
- <p>
- 基于参数数组m,来创建 [page:Material] 数组. 参数索引与材质的索引一致。
- </p>
- <h2>Handlers</h2>
- <p>
- *[name].Handlers* is a special object normally used by other loaders like [page:GLTFLoader] or [page:MTLLoader]. It provides an
- API that allows the definition of special mappings: What loaders should be used in order to load specific files. A typical use case
- is to overwrite the default loader for textures.<br /><br />
-
- Note: It's only possible to use *[name].Handlers* if the respective loader support the usage.
- </p>
-
- <h3>[method:null add]( [param:Object regex], [param:Loader loader] )</h3>
- <p>
- [page:Object regex] — A regular expression.<br />
- [page:Loader loader] — The loader.
- <p>
- Registers a loader with the given regular expression.
- </p>
-
- <h3>[method:null get]( [param:String file] )</h3>
- <p>
- [page:String file] — The file path.
- <p>
- Can be used to retrieve the registered loader for the given file path.
- </p>
-
- <h2>Source</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </body>
- </html>
|