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

Function drawTexture

src/textures/index.ts:39–41  ·  view source on GitHub ↗
(texture: Texture, x: number, y: number, tint: Color)

Source from the content-addressed store, hash-verified

37}
38
39export function drawTexture(texture: Texture, x: number, y: number, tint: Color): void {
40 bloom_draw_texture(texture.id, x, y, tint.r, tint.g, tint.b, tint.a);
41}
42
43export function drawTextureRec(texture: Texture, source: Rect, position: { x: number; y: number }, tint: Color): void {
44 bloom_draw_texture_rec(texture.id, source.x, source.y, source.width, source.height, position.x, position.y, tint.r, tint.g, tint.b, tint.a);

Callers

nothing calls this directly

Calls 1

bloom_draw_textureFunction · 0.50

Tested by

no test coverage detected