Struct amethyst_renderer::Mesh[][src]

pub struct Mesh { /* fields omitted */ }

Represents a polygonal mesh.

Methods

impl Mesh
[src]

Builds a new mesh from the given vertices.

Returns the mesh's vertex buffer which matches requested attributes

Returns associated Slice

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]

NAME: &'static str = "renderer::Mesh"

An identifier for this asset used for debugging.

The Data type the asset can be created from.

The ECS storage type to be used. You'll want to use VecStorage in most cases.

impl SimpleFormat<Mesh> for ObjFormat
[src]

NAME: &'static str = "WAVEFRONT_OBJ"

A unique identifier for this format.

Options specific to the format, which are passed to import. E.g. for textures this would be stuff like mipmap levels and sampler info. Read more

Produces asset data from given bytes.

impl Clone for Mesh
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Mesh
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Mesh

impl Sync for Mesh