Lugdunum
0.1.0
src
lug
Graphics
Render
Mesh.cpp
Go to the documentation of this file.
1
#include <
lug/Graphics/Render/Mesh.hpp
>
2
3
namespace
lug
{
4
namespace
Graphics {
5
namespace
Render {
6
7
Mesh::Mesh
(
const
std::string& name) :
Resource
(
Resource
::
Type
::
Mesh
, name) {}
8
9
Mesh::~Mesh
() {
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
Mesh.hpp
lug::Graphics::Render::Mesh::~Mesh
virtual ~Mesh()
Definition:
Mesh.cpp:9
lug::Graphics::Render::Mesh
A Mesh, which itsef is a Resource. A mesh is composed of a vector of PrimitiveSet.
Definition:
Mesh.hpp:26
lug::Graphics::Render::Mesh::_primitiveSets
std::vector< PrimitiveSet > _primitiveSets
Definition:
Mesh.hpp:97
lug::Graphics::Resource
Class for resource.
Definition:
Resource.hpp:17
lug
Definition:
Application.hpp:11
lug::Graphics::Resource::Type
Type
Type of the resource.
Definition:
Resource.hpp:24
lug::Graphics::Render::Mesh::Mesh
Mesh(const Mesh &)=delete
Generated by
1.8.13