pub enum ShapeRenderable {
Points {
tint: Rgba,
points: Vec<Vec2>,
size: Scalar,
},
Lines {
tint: Rgba,
points: Vec<Vec2>,
size: Scalar,
},
Polygon {
tint: Rgba,
points: Vec<Vec2>,
},
Triangles {
tint: Rgba,
points: Vec<[Vec2; 3]>,
},
Circle {
tint: Rgba,
center: Vec2,
radius: Scalar,
segments: usize,
},
}
Variants§
Implementations§
source§impl ShapeRenderable
impl ShapeRenderable
pub fn factory(&self) -> Result<StaticVertexFactory, MeshError>
Trait Implementations§
source§impl Clone for ShapeRenderable
impl Clone for ShapeRenderable
source§fn clone(&self) -> ShapeRenderable
fn clone(&self) -> ShapeRenderable
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 ShapeRenderable
impl Debug for ShapeRenderable
source§impl From<ShapeRenderable> for Renderable
impl From<ShapeRenderable> for Renderable
source§fn from(other: ShapeRenderable) -> Self
fn from(other: ShapeRenderable) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ShapeRenderable
impl Send for ShapeRenderable
impl Sync for ShapeRenderable
impl Unpin for ShapeRenderable
impl UnwindSafe for ShapeRenderable
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