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

Function drawTextureRec

src/textures/index.ts:43–45  ·  view source on GitHub ↗
(texture: Texture, source: Rect, position: { x: number; y: number }, tint: Color)

Source from the content-addressed store, hash-verified

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);
45}
46
47export function drawTexturePro(
48 texture: Texture, source: Rect, dest: Rect,

Callers

nothing calls this directly

Calls 1

bloom_draw_texture_recFunction · 0.50

Tested by

no test coverage detected