pub enum Mesh {
Solid {
buffers: Indexed<SolidVertex2D>,
transformation: Transformation,
clip_bounds: Rectangle,
},
Gradient {
buffers: Indexed<GradientVertex2D>,
transformation: Transformation,
clip_bounds: Rectangle,
},
}Expand description
A low-level primitive to render a mesh of triangles.
Variants§
Solid
A mesh with a solid color.
Fields
§
buffers: Indexed<SolidVertex2D>The vertices and indices of the mesh.
§
transformation: TransformationThe Transformation for the vertices of the Mesh.
Gradient
A mesh with a gradient.
Fields
§
buffers: Indexed<GradientVertex2D>The vertices and indices of the mesh.
§
transformation: TransformationThe Transformation for the vertices of the Mesh.
Implementations§
Source§impl Mesh
impl Mesh
Sourcepub fn transformation(&self) -> Transformation
pub fn transformation(&self) -> Transformation
Returns the Transformation of the Mesh.
Sourcepub fn clip_bounds(&self) -> Rectangle
pub fn clip_bounds(&self) -> Rectangle
Returns the clip bounds of the Mesh.
Trait Implementations§
impl StructuralPartialEq for Mesh
Auto Trait Implementations§
impl Freeze for Mesh
impl RefUnwindSafe for Mesh
impl Send for Mesh
impl Sync for Mesh
impl Unpin for Mesh
impl UnwindSafe for Mesh
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more