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

Function drawTexturePro

src/textures/index.ts:47–58  ·  view source on GitHub ↗
(
  texture: Texture, source: Rect, dest: Rect,
  origin: { x: number; y: number }, rotation: number, tint: Color,
)

Source from the content-addressed store, hash-verified

45}
46
47export function drawTexturePro(
48 texture: Texture, source: Rect, dest: Rect,
49 origin: { x: number; y: number }, rotation: number, tint: Color,
50): void {
51 bloom_draw_texture_pro(
52 texture.id,
53 source.x, source.y, source.width, source.height,
54 dest.x, dest.y, dest.width, dest.height,
55 origin.x, origin.y, rotation,
56 tint.r, tint.g, tint.b, tint.a,
57 );
58}
59
60// Raw variant: takes primitives directly. Workaround for aarch64 Android
61// Perry miscompilation where obj.field reads feeding f64 FFI args arrive as NaN.

Callers

nothing calls this directly

Calls 1

bloom_draw_texture_proFunction · 0.50

Tested by

no test coverage detected