8#include <utility/graphic/mesh.hpp>
10namespace utility::graphic
13 const std::vector<uint32_t> &indices)
25 _vertices.push_back(vertex);
30 _indices.push_back(index);
void addVertex(const VertexF &vertex)
Add a vertex to the mesh.
Mesh(const std::vector< VertexF > &vertices, const std::vector< uint32_t > &indices)
Constructs a Mesh object with the specified vertices and indices.
const std::vector< VertexF > & getVertices() const
Get the vertices of the mesh.
void reset(void)
Reset the mesh by clearing all vertices and indices.
const std::vector< uint32_t > & getIndices() const
Get the indices of the mesh.
void addIndex(uint32_t index)
Add an index to the mesh.
~Mesh()
Destructs the Mesh object, releasing any allocated resources.
Vertex type containing common mesh attributes.