pub struct ClearBits(/* private fields */);Expand description
Specify the clear value for the color, depth, and stencil buffers
used in clear.
Implementations§
source§impl ClearBits
impl ClearBits
sourcepub const fn from_bits(bits: GLenum) -> Self
pub const fn from_bits(bits: GLenum) -> Self
Constructs a new ClearBits from the given bits.
§Parameters
bits- the bits to construct theClearBitsfrom
sourcepub const fn has_stencil(&self) -> bool
pub const fn has_stencil(&self) -> bool
Returns whether the ClearBits contains the stencil bits.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClearBits
impl RefUnwindSafe for ClearBits
impl Send for ClearBits
impl Sync for ClearBits
impl Unpin for ClearBits
impl UnwindSafe for ClearBits
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)