pub fn triangle(&mut self, points: [Vec2<f32>; 3], color: Color) {
        self.push_state_cmd(StateCmd::TextureChange(SamplerId::Solid));
        let uv = Vec2::ZERO;

        self.add_vertices(&[
            Vert { pos: points[0], uv, color },
            Vert { pos: points[1], uv, color },
            Vert { pos: points[2], uv, color },
        ]);
    }
/// Draws a single solid triangle.
Draws a single solid triangle.
Draws a single solid triangle .
pub fn triangle(&mut self, points: [Vec2<f32>; 3], color: Color) {
        self.push_state_cmd(StateCmd::TextureChange(SamplerId::Solid));
        let uv = Vec2::ZERO;
        self.add_vertices(&[
            Vert { pos: points[0], uv, color },
            Vert { pos: points[1], uv, color },
            Vert { pos: points[2], uv, color },
        ]);
    }
pub fn triangle ( & mut self , points : [ Vec2 < f32 > ; 3 ] , color : Color ) { self . push_state_cmd ( StateCmd :: TextureChange ( SamplerId :: Solid ) ) ; let uv = Vec2 :: ZERO ; self . add_vertices ( & [ Vert { pos : points [ 0 ] , uv , color } , Vert { pos : points [ 1 ] , uv , color } , Vert { pos : points [ 2 ] , uv , color } , ] ) ; }
Draws a single solid triangle.
Draws a single solid triangle .
&mut self
points
[Vec2<f32>; 3]
color
Color
&mut self
points
[Vec2<f32>; 3]
color
Color