Struct 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
[src]

fn get_cull_face(&self) -> CullFace

Get the cull face, if any, for this primitive state.

Trait Implementations

impl PartialOrd for Primitive
[src]

fn partial_cmp(&self, __arg_0: &Primitive) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more

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

This method tests less than (for self and other) and is used by the < operator. Read more

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

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

This method tests greater than (for self and other) and is used by the > operator. Read more

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Debug for Primitive
[src]

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

Formats the value using the given formatter.

impl PartialEq for Primitive
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl Clone for Primitive
[src]

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
[src]

impl Default for Primitive
[src]

fn default() -> Primitive

Returns the "default value" for a type. Read more