Lugdunum  0.1.0
Mesh.cpp
Go to the documentation of this file.
2 
3 namespace lug {
4 namespace Graphics {
5 namespace Render {
6 
7 Mesh::Mesh(const std::string& name) : Resource(Resource::Type::Mesh, name) {}
8 
10  for (auto& primitiveSet : _primitiveSets) {
11  for (auto& attribute : primitiveSet.attributes) {
12  delete[] attribute.buffer.data;
13  attribute.buffer.data = nullptr;
14  }
15  }
16 }
17 
18 } // Render
19 } // Graphics
20 } // lug
A Mesh, which itsef is a Resource. A mesh is composed of a vector of PrimitiveSet.
Definition: Mesh.hpp:26
std::vector< PrimitiveSet > _primitiveSets
Definition: Mesh.hpp:97
Class for resource.
Definition: Resource.hpp:17
Type
Type of the resource.
Definition: Resource.hpp:24
Mesh(const Mesh &)=delete