Struct amethyst_renderer::Mesh
[−]
[src]
pub struct Mesh { /* fields omitted */ }
Represents a polygonal mesh.
Methods
impl Mesh
[src]
fn build<D, V>(verts: D) -> MeshBuilder<((D, PhantomData<V>), ())> where
D: AsRef<[V]>,
V: VertexFormat,
[src]
D: AsRef<[V]>,
V: VertexFormat,
Builds a new mesh from the given vertices.
fn buffer(&self, attributes: Attributes) -> Option<&RawBuffer<Resources>>
[src]
Returns the mesh's vertex buffer which matches requested attributes
fn slice(&self) -> &Slice<Resources>
[src]
Returns associated Slice
fn transform(&self) -> Matrix4<f32>
[src]
Returns the transformation matrix of the mesh.
This four-by-four matrix applies translation, rotation, and scaling to the mesh. It is often referred to in the computer graphics industry as the "model matrix".
Trait Implementations
impl Asset for Mesh
[src]
type Data = MeshData
The Data
type the asset can be created from.
type HandleStorage = VecStorage<MeshHandle>
The ECS storage type to be used. You'll want to use VecStorage
in most cases.
impl Clone for Mesh
[src]
fn clone(&self) -> Mesh
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more