Struct gfx::device::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

Which vertex winding is considered to be the front face for culling.

method

How to rasterize this primitive.

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 Default for Primitive

fn default() -> Primitive

Derived Implementations

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

fn clone_from(&mut self, source: &Self)

impl Copy for Primitive