Struct gfx::state::Rasterizer []

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

Create a new filling rasterizer.

Add back face culling.

Add polygon offset.

Trait Implementations

impl PartialEq<Rasterizer> for Rasterizer

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

This method tests for !=.

impl Eq for Rasterizer

impl Hash for Rasterizer

impl PartialOrd<Rasterizer> for Rasterizer

impl Copy for Rasterizer

impl Clone for Rasterizer

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Rasterizer

Formats the value using the given formatter.