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

Method draw_rect_lines

native/shared/src/renderer/mod.rs:11861–11867  ·  view source on GitHub ↗
(&mut self, x: f64, y: f64, w: f64, h: f64, thickness: f64, r: f64, g: f64, b: f64, a: f64)

Source from the content-addressed store, hash-verified

11859 }
11860
11861 pub fn draw_rect_lines(&mut self, x: f64, y: f64, w: f64, h: f64, thickness: f64, r: f64, g: f64, b: f64, a: f64) {
11862 let t = thickness;
11863 self.draw_rect(x, y, w, t, r, g, b, a);
11864 self.draw_rect(x, y + h - t, w, t, r, g, b, a);
11865 self.draw_rect(x, y + t, t, h - 2.0 * t, r, g, b, a);
11866 self.draw_rect(x + w - t, y + t, t, h - 2.0 * t, r, g, b, a);
11867 }
11868
11869 pub fn draw_line(&mut self, x1: f64, y1: f64, x2: f64, y2: f64, thickness: f64, r: f64, g: f64, b: f64, a: f64) {
11870 self.ensure_draw_state(0);

Callers 7

bloom_draw_rect_linesFunction · 0.80
bloom_draw_rect_linesFunction · 0.80
bloom_draw_rect_linesFunction · 0.80
bloom_draw_rect_linesFunction · 0.80
bloom_draw_rect_linesFunction · 0.80
bloom_draw_rect_linesFunction · 0.80
bloom_draw_rect_linesFunction · 0.80

Calls 1

draw_rectMethod · 0.80

Tested by

no test coverage detected