pub enum DisplayMode {
Debug,
Points {
fill_char: ColChar,
},
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§
Debug
DisplayMode::Debug does the same thing, but shows the vertices as the indices that represent them (this is useful when you are constructing a mesh)
Points
DisplayMode::Points only renders the object’s vertices as single pixels with the ColChar chosen with the fill_char enum parameter
Wireframe
DisplayMode::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
DisplayMode::Solid renders the full faces of all the meshes. This is normally the final render
Illuminated
DisplayMode::Illuminated will replace your faces’ text_chars with a character of different size to emulate light, based on a given list of Lights
Trait Implementations§
Source§impl Clone for DisplayMode
impl Clone for DisplayMode
Source§fn clone(&self) -> DisplayMode
fn clone(&self) -> DisplayMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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)
clone_to_uninit)