12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <!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:string crossOrigin]</h3>
- <p>
- 跨域字符串,用于实现跨域,以便从允许CORS从其他域加载url。默认为"anonymous"。
- </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>
|