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

Function bloom_draw_texture

native/macos/src/lib.rs:917–923  ·  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

915
916#[no_mangle]
917pub extern "C" fn bloom_draw_texture(handle: f64, x: f64, y: f64, tint_r: f64, tint_g: f64, tint_b: f64, tint_a: f64) {
918 let eng = engine();
919 if let Some(tex) = eng.textures.get(handle) {
920 let bind_group_idx = tex.bind_group_idx;
921 eng.renderer.draw_texture(bind_group_idx, x, y, tint_r, tint_g, tint_b, tint_a);
922 }
923}
924
925#[no_mangle]
926pub extern "C" 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