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

Function bloom_draw_texture_pro

native/web/src/lib.rs:645–663  ·  view source on GitHub ↗
(
    handle: f64,
    src_x: f64, src_y: f64, src_w: f64, src_h: f64,
    dst_x: f64, dst_y: f64, dst_w: f64, dst_h: f64,
    origin_x: f64, origin_y: f64, rotation: f64,
    tint_r: f64, tint_g: f64

Source from the content-addressed store, hash-verified

643
644#[wasm_bindgen]
645pub fn bloom_draw_texture_pro(
646 handle: f64,
647 src_x: f64, src_y: f64, src_w: f64, src_h: f64,
648 dst_x: f64, dst_y: f64, dst_w: f64, dst_h: f64,
649 origin_x: f64, origin_y: f64, rotation: f64,
650 tint_r: f64, tint_g: f64, tint_b: f64, tint_a: f64,
651) {
652 let eng = engine();
653 if let Some(tex) = eng.textures.get(handle) {
654 let bind_group_idx = tex.bind_group_idx;
655 eng.renderer.draw_texture_pro(
656 bind_group_idx,
657 src_x, src_y, src_w, src_h,
658 dst_x, dst_y, dst_w, dst_h,
659 origin_x, origin_y, rotation,
660 tint_r, tint_g, tint_b, tint_a,
661 );
662 }
663}
664
665#[wasm_bindgen]
666pub fn bloom_draw_texture_rec(

Callers

nothing calls this directly

Calls 3

draw_texture_proMethod · 0.80
engineFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected