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
front_face: FrontFace
Which vertex winding is considered to be the front face for culling.
cull_face: CullFace
Which face should be culled.
method: RasterMethod
How to rasterize this primitive.
offset: Option<Offset>
Any polygon offset to apply.
samples: Option<MultiSample>
Multi-sampling mode.
Methods
impl Rasterizer[src]
impl Rasterizerpub fn new_fill() -> Rasterizer[src]
pub fn new_fill() -> RasterizerCreate a new filling rasterizer.
pub fn with_cull_back(self) -> Rasterizer[src]
pub fn with_cull_back(self) -> RasterizerAdd back face culling.
pub fn with_offset(self, slope: f32, units: i32) -> Rasterizer[src]
pub fn with_offset(self, slope: f32, units: i32) -> RasterizerAdd polygon offset.
Trait Implementations
impl PartialOrd<Rasterizer> for Rasterizer[src]
impl PartialOrd<Rasterizer> for Rasterizerfn partial_cmp(&self, other: &Rasterizer) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Rasterizer) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rasterizer) -> bool[src]
fn lt(&self, other: &Rasterizer) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rasterizer) -> bool[src]
fn le(&self, other: &Rasterizer) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rasterizer) -> bool[src]
fn gt(&self, other: &Rasterizer) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rasterizer) -> bool[src]
fn ge(&self, other: &Rasterizer) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Hash for Rasterizer[src]
impl Hash for Rasterizerfn hash<__H>(&self, state: &mut __H) where
__H: Hasher, [src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Clone for Rasterizer[src]
impl Clone for Rasterizerfn clone(&self) -> Rasterizer[src]
fn clone(&self) -> RasterizerReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for Rasterizer[src]
impl Debug for Rasterizerfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Copy for Rasterizer[src]
impl Copy for Rasterizerimpl Eq for Rasterizer[src]
impl Eq for Rasterizerimpl PartialEq<Rasterizer> for Rasterizer[src]
impl PartialEq<Rasterizer> for Rasterizerfn eq(&self, other: &Rasterizer) -> bool[src]
fn eq(&self, other: &Rasterizer) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rasterizer) -> bool[src]
fn ne(&self, other: &Rasterizer) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for Rasterizer
impl Send for Rasterizerimpl Sync for Rasterizer
impl Sync for Rasterizer