( vertices: number[], vertexCount: number, indices: number[], indexCount: number, )
| 662 | /// Use this when the underlying `number[]` arrays were built with |
| 663 | /// `.push()`, since Perry's `.length` doesn't reflect post-push size. |
| 664 | export function createMeshExplicit( |
| 665 | vertices: number[], vertexCount: number, |
| 666 | indices: number[], indexCount: number, |
| 667 | ): Model { |
| 668 | const handle = bloom_create_mesh(vertices as any, vertexCount, indices as any, indexCount); |
| 669 | return makeModel(handle, 1, 1); |
| 670 | } |
| 671 | |
| 672 | export function setAmbientLight(color: Color, intensity: number): void { |
| 673 | bloom_set_ambient_light(color.r, color.g, color.b, intensity); |
no test coverage detected