Mesh

Class for raw geometry.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

addIndex
void addIndex(uint index)

Adds one index.

addIndices
void addIndices(const uint[] indices)

Adds many indices.

addTexCoord
void addTexCoord(vec2 texCoord)

Adds one texture coordinate.

addTexCoords
void addTexCoords(const vec2[] texCoords)

Adds many texture coordinates.

addVertex
void addVertex(vec3 vertex)

Adds one vertex.

addVertices
void addVertices(const vec3[] vertices)

Adds many vertices.

create
void create()

Generates the RenderableMesh from the previously defined vertices and makes this valid.

dispose
void dispose()

Deletes the mesh from memory and cleans up.

Properties

indices
uint[] indices [@property getter]

Array of the indices.

texCoords
vec2[] texCoords [@property getter]

Array of the texture coordinates.

valid
bool valid [@property getter]

Checks if this Mesh can be drawn.

vertices
vec3[] vertices [@property getter]

Array of the vertices.

Variables

renderable
RenderableMesh renderable;

Renderable mesh when create got called. Before its null.

Meta