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

Function bloom_draw_texture_rec

native/macos/src/lib.rs:947–963  ·  view source on GitHub ↗
(
    handle: f64,
    src_x: f64, src_y: f64, src_w: f64, src_h: f64,
    dst_x: f64, dst_y: f64,
    tint_r: f64, tint_g: f64, tint_b: f64, tint_a: f64,
)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

draw_texture_recMethod · 0.80
engineFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected