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
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.
Implementations
impl Rasterizer
[src]
pub fn new_fill() -> Rasterizer
[src]
Create a new filling rasterizer.
pub fn with_cull_back(self) -> Rasterizer
[src]
Add back face culling.
pub fn with_offset(self, slope: f32, units: i32) -> Rasterizer
[src]
Add polygon offset.
Trait Implementations
impl Clone for Rasterizer
[src]
pub fn clone(&self) -> Rasterizer
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Rasterizer
[src]
impl Debug for Rasterizer
[src]
impl Eq for Rasterizer
[src]
impl Hash for Rasterizer
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Rasterizer> for Rasterizer
[src]
pub fn eq(&self, other: &Rasterizer) -> bool
[src]
pub fn ne(&self, other: &Rasterizer) -> bool
[src]
impl PartialOrd<Rasterizer> for Rasterizer
[src]
pub fn partial_cmp(&self, other: &Rasterizer) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl StructuralEq for Rasterizer
[src]
impl StructuralPartialEq for Rasterizer
[src]
Auto Trait Implementations
impl RefUnwindSafe for Rasterizer
impl Send for Rasterizer
impl Sync for Rasterizer
impl Unpin for Rasterizer
impl UnwindSafe for Rasterizer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,