Trait bevy::render::mesh::Meshable

source ·
pub trait Meshable {
    type Output;

    // Required method
    fn mesh(&self) -> Self::Output;
}
Expand description

A trait for shapes that can be turned into a Mesh.

Required Associated Types§

source

type Output

The output of Self::mesh. This can either be a Mesh or a builder used for creating a Mesh.

Required Methods§

source

fn mesh(&self) -> Self::Output

Creates a Mesh for a shape.

Implementors§