utility 2026.1.9
A comprehensive C++ utilities library tailored for the development of modern desktop and extended reality (XR) applications.
Loading...
Searching...
No Matches
primitive.hpp
1/*
2** ETIB PROJECT, 2026
3** xider
4** File description:
5** primitive
6*/
7
8#pragma once
9
10#include <utility/graphic/renderable.hpp>
11
12namespace utility::graphic
13{
26 class Primitive: public Renderable
27 {
28 public:
40 Primitive(const std::vector<Mesh> &meshes);
41
45 Primitive(const Primitive &) = delete;
46
50 ~Primitive() = default;
51
64 void addMesh(const Mesh &mesh);
65
69 Primitive &operator=(const Primitive &) = delete;
70 };
71} // namespace utility::graphic
The Mesh class represents a 3D mesh used for rendering in a graphics application.
Definition mesh.hpp:25
The Primitive class represents a basic geometric shape that can be rendered in the graphics applicati...
Definition primitive.hpp:27
Primitive(const Primitive &)=delete
Deleted copy constructor for Primitive.
Primitive & operator=(const Primitive &)=delete
Deleted copy assignment operator for Primitive.
~Primitive()=default
Default destructor for Primitive.
void addMesh(const Mesh &mesh)
Add a mesh to the primitive.
Definition primitive.cpp:20
The Renderable class represents an object that can be rendered in the graphics application.