pub enum DisplayMode {
Wireframe {
backface_culling: bool,
},
Solid,
Illuminated {
lights: Vec<Light>,
},
}Expand description
DisplayMode determines how the Viewport renders our 3D objects. This is the Gemini equivalent of Blender’s Viewport Shading options
Variants§
Wireframe
Renders the edges of the meshes, without filling in the shapes. You can choose whether you want to render with backface culling using the backface_culling enum parameter
Fields
Solid
Renders the full, unshaded faces of all the meshes.
Illuminated
Renders with faces’ text_chars replaced with other characters to emulate light, based on a passed list of Lights
Trait Implementations§
Source§impl Clone for DisplayMode
impl Clone for DisplayMode
Source§fn clone(&self) -> DisplayMode
fn clone(&self) -> DisplayMode
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 moreSource§impl Debug for DisplayMode
impl Debug for DisplayMode
Source§impl PartialEq for DisplayMode
impl PartialEq for DisplayMode
impl StructuralPartialEq for DisplayMode
Auto Trait Implementations§
impl Freeze for DisplayMode
impl RefUnwindSafe for DisplayMode
impl Send for DisplayMode
impl Sync for DisplayMode
impl Unpin for DisplayMode
impl UnwindSafe for DisplayMode
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