Struct graphics::draw_state::state::Primitive []

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

fn fmt(&self, __arg_0: &mut Formatter) -> Result<()Error>

impl PartialEq<Primitive> for Primitive

fn eq(&self, __arg_0: &Primitive) -> bool

fn ne(&self, __arg_0: &Primitive) -> bool

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

impl Copy for Primitive

impl Default for Primitive