27 friend class ::lug::Graphics::Builder::Mesh;
35 enum class Type : uint8_t {
50 uint32_t elementsCount{0};
59 enum class Mode : uint8_t {
66 } mode{Mode::Triangles};
68 std::vector<Attribute> attributes{};
73 std::vector<Attribute*> texCoords{};
74 std::vector<Attribute*> colors{};
86 Mesh& operator=(
const Mesh&) =
delete;
91 const std::vector<Mesh::PrimitiveSet>& getPrimitiveSets()
const;
94 explicit Mesh(
const std::string& name);
Describes part of a Mesh.
A Mesh, which itsef is a Resource. A mesh is composed of a vector of PrimitiveSet.
Dummy class for a shared pointer.
std::vector< PrimitiveSet > _primitiveSets
Access to the data of the attribute.
Mode
Type of the primitive set, defaults to Triangles.