Struct amethyst_renderer::MeshBuilder[][src]

pub struct MeshBuilder<T> { /* fields omitted */ }

Builds new meshes.

Methods

impl<D, V> MeshBuilder<((D, PhantomData<V>), ())> where
    D: AsRef<[V]>,
    V: VertexFormat
[src]

Creates a new MeshBuilder with the given vertices.

impl<T> MeshBuilder<T> where
    T: VertexDataSet, 
[src]

Add another vertices to the MeshBuilder

Sets the primitive type of the mesh.

By default, meshes are constructed as triangle lists.

Sets the position of the mesh in 3D space.

Rotates the mesh a certain number of degrees around the given axis.

Scales the mesh size according to the given value.

Sets 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".

Builds and returns the new mesh.

Trait Implementations

impl<T: Clone> Clone for MeshBuilder<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for MeshBuilder<T>
[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq> PartialEq for MeshBuilder<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl<T> Send for MeshBuilder<T> where
    T: Send

impl<T> Sync for MeshBuilder<T> where
    T: Sync