Mesh

Class for raw geometry.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

addIndex
void addIndex(uint index)

Adds one index.

addIndices
void addIndices(uint[] indices)

Adds many indices.

addTexCoord
void addTexCoord(vec2 texCoord)

Adds one texture coordinate.

addTexCoords
void addTexCoords(vec2[] texCoords)

Adds many texture coordinates.

addVertex
void addVertex(vec3 vertex)

Adds one vertex.

addVertices
void addVertices(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.

Inherited Members

From IDisposable

dispose
void dispose()

Function for deallocating memory. Should be called in destructor.

From IVerifiable

valid
bool valid [@property getter]

Function for checking if this is valid.

Meta