Struct graphics::draw_state::state::Primitive   
                   
                       [−]
                   
               [src]
pub struct Primitive {
    pub front_face: FrontFace,
    pub method: RasterMethod,
    pub offset: Option<Offset>,
}Primitive rasterization state. Note that GL allows different raster method to be used for front and back, while this abstraction does not.
Fields
front_face: FrontFace
                           Which vertex winding is considered to be the front face for culling.
method: RasterMethod
                           How to rasterize this primitive.
offset: Option<Offset>
                           Any polygon offset to apply.
Methods
impl Primitive
fn get_cull_face(&self) -> CullFace
Get the cull face, if any, for this primitive state.
Trait Implementations
impl PartialOrd<Primitive> for Primitive
fn partial_cmp(&self, __arg_0: &Primitive) -> Option<Ordering>
fn lt(&self, __arg_0: &Primitive) -> bool
fn le(&self, __arg_0: &Primitive) -> bool
fn gt(&self, __arg_0: &Primitive) -> bool
fn ge(&self, __arg_0: &Primitive) -> bool
impl Debug for Primitive
impl PartialEq<Primitive> for Primitive
impl Clone for Primitive
fn clone(&self) -> Primitive
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more