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

Function drawCube

src/models/index.ts:221–224  ·  view source on GitHub ↗
(position: Vec3, width: number, height: number, depth: number, color: Color, opts?: DrawCubeOpts)

Source from the content-addressed store, hash-verified

219}
220
221export function drawCube(position: Vec3, width: number, height: number, depth: number, color: Color, opts?: DrawCubeOpts): void {
222 // Note: rotationY is accepted for API compatibility but applied only when native support exists
223 bloom_draw_cube(position.x, position.y, position.z, width, height, depth, color.r, color.g, color.b, color.a);
224}
225
226export function drawCubeWires(position: Vec3, width: number, height: number, depth: number, color: Color): void {
227 bloom_draw_cube_wires(position.x, position.y, position.z, width, height, depth, color.r, color.g, color.b, color.a);

Callers 4

renderBlocksFunction · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.85

Calls 1

bloom_draw_cubeFunction · 0.50

Tested by

no test coverage detected