pub enum Background3D {
Transparent,
Solid(Color),
VerticalGradient {
top: Color,
bottom: Color,
},
}Expand description
What the rasterizer fills before any geometry is drawn.
Variants§
Transparent
Leave the existing framebuffer contents untouched.
Solid(Color)
A single colour.
VerticalGradient
A vertical gradient from top to bottom over the viewport.
Implementations§
Trait Implementations§
Source§impl Clone for Background3D
impl Clone for Background3D
impl Copy for Background3D
Source§impl Debug for Background3D
impl Debug for Background3D
Source§impl Default for Background3D
impl Default for Background3D
Source§impl PartialEq for Background3D
impl PartialEq for Background3D
impl StructuralPartialEq for Background3D
Auto Trait Implementations§
impl Forget for Background3D
impl Freeze for Background3D
impl Move for Background3D
impl RefUnwindSafe for Background3D
impl Send for Background3D
impl Sync for Background3D
impl Unpin for Background3D
impl UnsafeUnpin for Background3D
impl UnwindSafe for Background3D
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