Graphics draw state used for blending, clipping and stencil rendering.
scissor: Option<[u32; 4]>
Scissor mask to use. If set, no pixel outside of this rectangle (in screen space) will be written to as a result of rendering.
Stencil test to use. If None, no stencil testing is done.
Blend function to use. If None, blending is disabled.
Uses alpha blending.
Draws to stencil buffer with value 255. This can be used for clipping.
pub fn new_inside() -> DrawState[src]
Tests against stencil buffer with value 255. Draws inside the shape defined by stencil buffer.
pub fn new_outside() -> DrawState[src]
Tests against stencil buffer with value 255. Draws outside the shape defined by stencil buffer.
[x, y, w, h].
impl PartialOrd<DrawState> for DrawState[src]
fn partial_cmp(&self, other: &DrawState) -> Option<Ordering>[src]
impl StructuralPartialEq for DrawState[src]
Auto Trait Implementations
impl RefUnwindSafe for DrawState
impl UnwindSafe for DrawState
impl<T> SetParameter for T[src]
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.