Mesh.h
Object representing the geometry of a rendered object.
Definition: Mesh.h:65
The texture cooridates of the vertex. 2 components: xy.
bool IsShallow()
Returns whether the mesh is a shallow mesh, mean it does not own its vertices.
Position of the vertex. 3 components: xyz.
Vector GetVertex(uint32_t index, VertexAttribute) const
Gets the vertex at the given index.
Definition: AssetID.h:37
std::vector< uint32_t > faceList
Geometry of the mesh object. Contains indices to the vertices defined in the Mesh.
Definition: Mesh.h:71
void MakeUnique()
If shallow, the mesh creates is own copy of vertices, making it no longer shallow. If the Mesh is not shallow, no action is taken.
void DefineVertices(VertexAttribute, const std::vector< Dynacoe::Vector > &vertexData)
Explicitly defines the vertices of the mesh.
User-defined data. 3 components: xyz.
void SetVertexCount(uint32_t t)
sets the number of vertices this mesh will hold. This will pre-emptively allocated space for the mesh...
void SetVertex(uint32_t index, VertexAttribute, const Vector &p)
Sets the vertex at the given.
The normal vector of the vertex. 3 components: xyz.
static const Mesh & Basic_Square()
Returns a Mesh representing a boring square.