pub enum ShadingType {
FunctionBased = 1,
Axial = 2,
Radial = 3,
FreeFormGouraud = 4,
LatticeFormGouraud = 5,
CoonsPatch = 6,
TensorProductPatch = 7,
}Expand description
Shading type enumeration according to ISO 32000-1
Variants§
FunctionBased = 1
Function-based shading (Type 1)
Axial = 2
Axial shading (Type 2) - linear gradient
Radial = 3
Radial shading (Type 3) - radial gradient
FreeFormGouraud = 4
Free-form Gouraud-shaded triangle mesh (Type 4)
LatticeFormGouraud = 5
Lattice-form Gouraud-shaded triangle mesh (Type 5)
CoonsPatch = 6
Coons patch mesh (Type 6)
TensorProductPatch = 7
Tensor-product patch mesh (Type 7)
Trait Implementations§
Source§impl Clone for ShadingType
impl Clone for ShadingType
Source§fn clone(&self) -> ShadingType
fn clone(&self) -> ShadingType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShadingType
Source§impl Debug for ShadingType
impl Debug for ShadingType
Source§impl PartialEq for ShadingType
impl PartialEq for ShadingType
impl StructuralPartialEq for ShadingType
Auto Trait Implementations§
impl Freeze for ShadingType
impl RefUnwindSafe for ShadingType
impl Send for ShadingType
impl Sync for ShadingType
impl Unpin for ShadingType
impl UnsafeUnpin for ShadingType
impl UnwindSafe for ShadingType
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