Struct amethyst_renderer::Mesh
[−]
pub struct Mesh { /* fields omitted */ }
Represents a polygonal mesh.
Methods
impl Mesh
[src]
fn build<D, V>(verts: D) -> MeshBuilder<D, V> where
D: AsRef<[V]>,
V: VertexFormat,
D: AsRef<[V]>,
V: VertexFormat,
Builds a new mesh from the given vertices.
fn attributes(&self) -> &[Attribute]
Returns a list of all vertex attributes needed by this mesh.
fn geometry(&self) -> (&RawBuffer<Resources>, &Slice<Resources>)
Returns the mesh's vertex buffer and associated buffer slice.
fn transform(&self) -> Matrix4<f32>
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 Clone for Mesh
[src]
fn clone(&self) -> Mesh
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more