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

Function bloom_draw_texture

native/web/src/lib.rs:636–642  ·  view source on GitHub ↗
(handle: f64, x: f64, y: f64, tint_r: f64, tint_g: f64, tint_b: f64, tint_a: f64)

Source from the content-addressed store, hash-verified

634
635#[wasm_bindgen]
636pub fn bloom_draw_texture(handle: f64, x: f64, y: f64, tint_r: f64, tint_g: f64, tint_b: f64, tint_a: f64) {
637 let eng = engine();
638 if let Some(tex) = eng.textures.get(handle) {
639 let bind_group_idx = tex.bind_group_idx;
640 eng.renderer.draw_texture(bind_group_idx, x, y, tint_r, tint_g, tint_b, tint_a);
641 }
642}
643
644#[wasm_bindgen]
645pub fn bloom_draw_texture_pro(

Callers

nothing calls this directly

Calls 3

draw_textureMethod · 0.80
engineFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected