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

Function bloom_draw_texture_pro

native/ios/src/lib.rs:936–948  ·  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,
    r: f64, g: f64, b: f64, 

Source from the content-addressed store, hash-verified

934
935#[no_mangle]
936pub extern "C" fn bloom_draw_texture_pro(
937 handle: f64,
938 src_x: f64, src_y: f64, src_w: f64, src_h: f64,
939 dst_x: f64, dst_y: f64, dst_w: f64, dst_h: f64,
940 origin_x: f64, origin_y: f64, rotation: f64,
941 r: f64, g: f64, b: f64, a: f64,
942) {
943 let eng = engine();
944 if let Some(tex) = eng.textures.get(handle) {
945 let idx = tex.bind_group_idx;
946 eng.renderer.draw_texture_pro(idx, src_x, src_y, src_w, src_h, dst_x, dst_y, dst_w, dst_h, origin_x, origin_y, rotation, r, g, b, a);
947 }
948}
949
950#[no_mangle]
951pub extern "C" fn bloom_draw_texture_rec(

Callers 2

drawTextureProFunction · 0.50
drawTextureProRawFunction · 0.50

Calls 3

draw_texture_proMethod · 0.80
engineFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected