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

[src]

Create a new filling rasterizer.

[src]

Add back face culling.

[src]

Add polygon offset.

Trait Implementations

impl Copy for Rasterizer
[src]

impl Hash for Rasterizer
[src]

[src]

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

1.3.0
[src]

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

impl Clone for Rasterizer
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Rasterizer
[src]

impl PartialEq<Rasterizer> for Rasterizer
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for Rasterizer
[src]

[src]

Formats the value using the given formatter.

impl PartialOrd<Rasterizer> for Rasterizer
[src]

[src]

[src]

[src]

[src]

[src]