Skip to main content

push_rect_quad

Function push_rect_quad 

Source
pub fn push_rect_quad(
    out: &mut Vec<Vertex>,
    x: f32,
    y: f32,
    w: f32,
    h: f32,
    color: Color,
)
Expand description

Append six vertices (two triangles) covering the axis-aligned rectangle (x, y, w, h) with a uniform color, tagged as a solid rectangle.