( material: number, mesh: Model, position: Vec3, scale: number, tint: Color, )
| 625 | /// Convenience wrapper around `drawMeshWithMaterial` that loops |
| 626 | /// 0..mesh.meshCount internally. |
| 627 | export function drawModelWithMaterial( |
| 628 | material: number, mesh: Model, |
| 629 | position: Vec3, scale: number, tint: Color, |
| 630 | ): void { |
| 631 | for (let i = 0; i < mesh.meshCount; i = i + 1) { |
| 632 | bloom_draw_material( |
| 633 | material, mesh.handle, i, |
| 634 | position.x, position.y, position.z, scale, |
| 635 | tint.r, tint.g, tint.b, tint.a, |
| 636 | ); |
| 637 | } |
| 638 | } |
| 639 | |
| 640 | export function loadModelAnimation(path: string): number { |
| 641 | return bloom_load_model_animation(path as any); |
nothing calls this directly
no test coverage detected