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

Function drawText

src/text/index.ts:11–13  ·  view source on GitHub ↗
(text: string, x: number, y: number, size: number, color: Color)

Source from the content-addressed store, hash-verified

9declare function bloom_unload_font(font: number): void;
10
11export function drawText(text: string, x: number, y: number, size: number, color: Color): void {
12 bloom_draw_text(text as any, x, y, size, color.r, color.g, color.b, color.a);
13}
14
15/// RGBA variant of `drawText`. Prefer this over passing a `Color` object on
16/// Android (aarch64): Perry 0.5.x miscompiles `color.r` field reads that feed

Callers 15

drawVirtualButtonFunction · 0.90
drawHUDFunction · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.85

Calls 1

bloom_draw_textFunction · 0.50

Tested by

no test coverage detected