pub fn push_quad(&mut self, vs: [u16; 4], swap_order: bool) {
        if !swap_order {
            self.indices
                .extend([vs[0], vs[1], vs[2], vs[0], vs[2], vs[3]]);
        } else {
            self.indices
                .extend([vs[0], vs[2], vs[3], vs[1], vs[2], vs[3]]);
        }
    }
/// Push a pair of triangles forming a quad, given an ordered quadruple of vertex indices.
///
/// `swap_order` causes the winding order to be reversed from what it would be otherwise.
Push a pair of triangles forming a quad, given an ordered quadruple of vertex indices.
`swap_order` causes the winding order to be reversed from what it would be otherwise.
Push a pair of triangles forming a quad given an ordered quadruple of vertex indices . ` swap_order ` causes the winding order to be reversed from what it would be otherwise .
pub fn push_quad(&mut self, vs: [u16; 4], swap_order: bool) {
        if !swap_order {
            self.indices
                .extend([vs[0], vs[1], vs[2], vs[0], vs[2], vs[3]]);
        } else {
            self.indices
                .extend([vs[0], vs[2], vs[3], vs[1], vs[2], vs[3]]);
        }
    }
pub fn push_quad ( & mut self , vs : [ u16 ; 4 ] , swap_order : bool ) { if ! swap_order { self . indices . extend ( [ vs [ 0 ] , vs [ 1 ] , vs [ 2 ] , vs [ 0 ] , vs [ 2 ] , vs [ 3 ] ] ) ; } else { self . indices . extend ( [ vs [ 0 ] , vs [ 2 ] , vs [ 3 ] , vs [ 1 ] , vs [ 2 ] , vs [ 3 ] ] ) ; } }
Push a pair of triangles forming a quad, given an ordered quadruple of vertex indices.
Push a pair of triangles forming a quad given an ordered quadruple of vertex indices .
&mut self
vs
[u16; 4]
swap_order
bool
&mut self
vs
[u16; 4]
swap_order
bool