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

Method draw_texture

native/shared/src/renderer/mod.rs:11981–11986  ·  view source on GitHub ↗
(&mut self, bind_group_idx: u32, x: f64, y: f64, tint_r: f64, tint_g: f64, tint_b: f64, tint_a: f64)

Source from the content-addressed store, hash-verified

11979 }
11980
11981 pub fn draw_texture(&mut self, bind_group_idx: u32, x: f64, y: f64, tint_r: f64, tint_g: f64, tint_b: f64, tint_a: f64) {
11982 let (tw, th) = self.texture_sizes.get(bind_group_idx as usize).copied().unwrap_or((0, 0));
11983 if tw == 0 { return; }
11984 let color = Self::color_to_f32(tint_r, tint_g, tint_b, tint_a);
11985 self.draw_textured_quad(x as f32, y as f32, tw as f32, th as f32, 0.0, 0.0, 1.0, 1.0, color, bind_group_idx);
11986 }
11987
11988 pub fn draw_texture_rec(
11989 &mut self, bind_group_idx: u32,

Callers 7

bloom_draw_textureFunction · 0.80
bloom_draw_textureFunction · 0.80
bloom_draw_textureFunction · 0.80
bloom_draw_textureFunction · 0.80
bloom_draw_textureFunction · 0.80
bloom_draw_textureFunction · 0.80
bloom_draw_textureFunction · 0.80

Calls 2

draw_textured_quadMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected