Enum gemini_engine::elements3d::view3d::DisplayMode
source · pub enum DisplayMode {
Debug,
Points {
fill_char: ColChar,
},
Wireframe {
backface_culling: bool,
},
Solid,
}Expand description
DisplayMode determines how the Viewport renders our 3D objects. This is the Gemini equivalent of Blender’s Viewport Shading options
DisplayMode::Debugdoes the same thing, but shows the vertices as the indices that represent them (this is useful when you are constructing a mesh)DisplayMode::Pointsonly renders the object’s vertices as single pixels with theColCharchosen with thefill_charenum parameterDisplayMode::Wireframerenders the edges of the meshes, without filling in the shapes. You can choose whether you want to render with backface culling using thebackface_cullingenum parameterDisplayMode::Solidrenders the full faces of all the meshes. This is normally the final render
Variants§
Auto Trait Implementations§
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