MeshManager
1.2.0+
Manage meshes.
Creation
Creating a mesh is done using create:
1const mesh = engine.meshes.create({vertexCount: 3, indexData: [0, 1, 2]});
- MeshManager
- .constructor(engine) ⇒ MeshManager
- .create(params) ⇒ Mesh
.constructor(engine: WonderlandEngine) ⇒ MeshManager
Param | Type | Description |
---|---|---|
engine | WonderlandEngine |
.create(params: Partial<MeshParameters>) ⇒ Mesh
Create a new mesh.
Param | Type | Description |
---|---|---|
params | Partial<MeshParameters> | Vertex and index data. For more information, have a look at the MeshParameters object. |