Lugdunum
0.1.0
Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
Variables
Typedefs
Enumerations
Enumerator
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
x
y
Typedefs
Enumerations
+
Related Functions
:
b
c
d
g
l
p
s
w
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
+
Macros
d
f
l
n
s
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
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