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

Function bloom_draw_texture

native/linux/src/lib.rs:967–973  ·  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

965
966#[no_mangle]
967pub extern "C" fn bloom_draw_texture(handle: f64, x: f64, y: f64, r: f64, g: f64, b: f64, a: f64) {
968 let eng = engine();
969 if let Some(tex) = eng.textures.get(handle) {
970 let idx = tex.bind_group_idx;
971 eng.renderer.draw_texture(idx, x, y, r, g, b, a);
972 }
973}
974
975#[no_mangle]
976pub 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