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

Function bloom_draw_texture

native/android/src/lib.rs:583–589  ·  view source on GitHub ↗
(handle: f64, x: f64, y: f64, r: f64, g: f64, b: f64, a: f64)

Source from the content-addressed store, hash-verified

581
582#[no_mangle]
583pub extern "C" fn bloom_draw_texture(handle: f64, x: f64, y: f64, r: f64, g: f64, b: f64, a: f64) {
584 let eng = engine();
585 if let Some(tex) = eng.textures.get(handle) {
586 let idx = tex.bind_group_idx;
587 eng.renderer.draw_texture(idx, x, y, r, g, b, a);
588 }
589}
590
591#[no_mangle]
592pub extern "C" fn bloom_draw_texture_rec(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) {

Callers

nothing calls this directly

Calls 3

draw_textureMethod · 0.80
engineFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected