@tripo3d/engine / createEngine
Function: createEngine()
ts
function createEngine(options?): Engine;Defined in: core/create-engine.ts:49
创建Engine 3.0唯一组合根。
package module import保持SSR-safe;只有调用本factory才访问browser/WebGL能力。
Parameters
| Parameter | Type | Description |
|---|---|---|
options | CreateEngineOptions | renderer、DPR、Pipeline与静态Plugins构造配置。 |
Returns
构造完成且初始stopped的Engine identity。
Throws
参数、native acquisition或Plugin setup失败时执行完整construction cleanup后抛出。