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

Function bloom_draw_texture_rec

native/ios/src/lib.rs:951–962  ·  view source on GitHub ↗
(
    handle: f64,
    src_x: f64, src_y: f64, src_w: f64, src_h: f64,
    dst_x: f64, dst_y: f64,
    r: f64, g: f64, b: f64, a: f64,
)

Source from the content-addressed store, hash-verified

949
950#[no_mangle]
951pub extern "C" fn bloom_draw_texture_rec(
952 handle: f64,
953 src_x: f64, src_y: f64, src_w: f64, src_h: f64,
954 dst_x: f64, dst_y: f64,
955 r: f64, g: f64, b: f64, a: f64,
956) {
957 let eng = engine();
958 if let Some(tex) = eng.textures.get(handle) {
959 let idx = tex.bind_group_idx;
960 eng.renderer.draw_texture_rec(idx, src_x, src_y, src_w, src_h, dst_x, dst_y, r, g, b, a);
961 }
962}
963
964#[no_mangle]
965pub extern "C" fn bloom_get_texture_width(handle: f64) -> f64 {

Callers 1

drawTextureRecFunction · 0.50

Calls 3

draw_texture_recMethod · 0.80
engineFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected