pub enum StencilType {
Deny,
Allow,
}Expand description
When modifying a stencil or clearing the stencil buffer, operations require a StencilType.
Variants§
Deny
Blacklists pixels on the screen when drawing.
Allow
Whitelists pixels on the screen when drawing.
Implementations§
Source§impl StencilType
impl StencilType
Sourcepub fn inverse(&self) -> StencilType
pub fn inverse(&self) -> StencilType
Returns the opposite of this stencil type.
Trait Implementations§
Source§impl Clone for StencilType
impl Clone for StencilType
Source§fn clone(&self) -> StencilType
fn clone(&self) -> StencilType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StencilType
Auto Trait Implementations§
impl Freeze for StencilType
impl RefUnwindSafe for StencilType
impl Send for StencilType
impl Sync for StencilType
impl Unpin for StencilType
impl UnwindSafe for StencilType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
Source§fn read<F, E>(size: usize, f: F) -> Result<T, E>
fn read<F, E>(size: usize, f: F) -> Result<T, E>
Prepares an output buffer, then turns this buffer into an
Owned.Source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
Source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
Source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
Source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.