MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / drawModel

Function drawModel

src/models/index.ts:154–156  ·  view source on GitHub ↗
(model: Model, position: Vec3, scale: number, tint: Color)

Source from the content-addressed store, hash-verified

152}
153
154export function drawModel(model: Model, position: Vec3, scale: number, tint: Color): void {
155 bloom_draw_model(model.handle, position.x, position.y, position.z, scale, tint.r, tint.g, tint.b, tint.a);
156}
157
158/// Draw a model with a Y-axis rotation (radians). RGBA is packed into
159/// a single f64 (ARGB byte order) to keep the FFI to 7 args, dodging

Callers 1

main.tsFile · 0.90

Calls 1

bloom_draw_modelFunction · 0.50

Tested by

no test coverage detected