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.
For nested clipping, clear the stencil buffer and use
pub fn new_increment() -> DrawState[src]
Increases stencil buffer. This can be used for nested 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]
pub fn partial_cmp(&self, other: &DrawState) -> Option<Ordering>[src]
impl StructuralPartialEq for DrawState[src]
Auto Trait Implementations
impl RefUnwindSafe for DrawState[src]
impl UnwindSafe for DrawState[src]
type Init = T
The type for initializers.
type Owned = T
The resulting type after obtaining ownership.
pub fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.