pub struct GlCullState {
pub mode: CullMode,
pub front_face: FrontFace,
}Expand description
The culling and winding state of one draw.
Fields§
§mode: CullModeWhich faces are discarded before rasterization.
front_face: FrontFaceWhich winding order counts as front facing. Flipping it swaps what
CullMode::Front and CullMode::Back discard.
Implementations§
Source§impl GlCullState
impl GlCullState
Trait Implementations§
Source§impl Clone for GlCullState
impl Clone for GlCullState
impl Copy for GlCullState
Source§impl Debug for GlCullState
impl Debug for GlCullState
Source§impl Default for GlCullState
impl Default for GlCullState
Source§impl PartialEq for GlCullState
impl PartialEq for GlCullState
impl StructuralPartialEq for GlCullState
Auto Trait Implementations§
impl Freeze for GlCullState
impl RefUnwindSafe for GlCullState
impl Send for GlCullState
impl Sync for GlCullState
impl Unpin for GlCullState
impl UnsafeUnpin for GlCullState
impl UnwindSafe for GlCullState
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