Struct gfx_core::state::Rasterizer [] [src]

pub struct Rasterizer {
    pub front_face: FrontFace,
    pub cull_face: CullFace,
    pub method: RasterMethod,
    pub offset: Option<Offset>,
    pub samples: Option<MultiSample>,
}

Primitive rasterization state. Note that GL allows different raster method to be used for front and back, while this abstraction does not.

Fields

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

Which face should be culled.

How to rasterize this primitive.

Any polygon offset to apply.

Multi-sampling mode.

Methods

impl Rasterizer
[src]

Create a new filling rasterizer.

Add back face culling.

Add polygon offset.

Trait Implementations

impl PartialOrd<Rasterizer> for Rasterizer
[src]

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

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

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

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

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

impl Eq for Rasterizer
[src]

impl Copy for Rasterizer
[src]

impl PartialEq<Rasterizer> for Rasterizer
[src]

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

This method tests for !=.

impl Debug for Rasterizer
[src]

Formats the value using the given formatter.

impl Hash for Rasterizer
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for Rasterizer
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more