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

Function bloom_draw_texture_pro

native/macos/src/lib.rs:926–944  ·  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

924
925#[no_mangle]
926pub extern "C" fn bloom_draw_texture_pro(
927 handle: f64,
928 src_x: f64, src_y: f64, src_w: f64, src_h: f64,
929 dst_x: f64, dst_y: f64, dst_w: f64, dst_h: f64,
930 origin_x: f64, origin_y: f64, rotation: f64,
931 tint_r: f64, tint_g: f64, tint_b: f64, tint_a: f64,
932) {
933 let eng = engine();
934 if let Some(tex) = eng.textures.get(handle) {
935 let bind_group_idx = tex.bind_group_idx;
936 eng.renderer.draw_texture_pro(
937 bind_group_idx,
938 src_x, src_y, src_w, src_h,
939 dst_x, dst_y, dst_w, dst_h,
940 origin_x, origin_y, rotation,
941 tint_r, tint_g, tint_b, tint_a,
942 );
943 }
944}
945
946#[no_mangle]
947pub extern "C" 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