10#include <utility/graphic/vertex.hpp>
12namespace utility::graphic
36 Mesh(
const std::vector<VertexF> &vertices,
37 const std::vector<uint32_t> &indices);
86 const std::vector<uint32_t> &
getIndices()
const;
104 return _vertices == other._vertices && _indices == other._indices;
114 return !(*
this == other);
121 std::vector<VertexF> _vertices;
126 std::vector<uint32_t> _indices;
The Mesh class represents a 3D mesh used for rendering in a graphics application.
bool operator==(const Mesh &other) const
Equality comparison.
void addVertex(const VertexF &vertex)
Add a vertex to the mesh.
bool operator!=(const Mesh &other) const
Inequality comparison.
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.