8#include <utility/graphic/primitive.hpp>
10namespace utility::graphic
15 for (
const auto &mesh: meshes) {
22 _meshes.push_back(std::make_shared<Mesh>(mesh));
The Mesh class represents a 3D mesh used for rendering in a graphics application.
Primitive(const std::vector< Mesh > &meshes)
Constructs a Primitive object with the specified meshes.
void addMesh(const Mesh &mesh)
Add a mesh to the primitive.
The Renderable class represents an object that can be rendered in the graphics application.
std::vector< std::shared_ptr< Mesh > > _meshes
Meshes associated with this renderable object.