blob: 3f6514bcd14d88ddf1ce72474203377f668354df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef VERTEX_H
#define VERTEX_H
#include <glm/glm.hpp>
class Vertex {
public:
Vertex(glm::vec3 pos, glm::vec2 texCoord, glm::vec3 normal) :
pos {std::move(pos)}, texCoord {std::move(texCoord)}, normal {std::move(normal)}
{
}
glm::vec3 &
GetPos()
{
return pos;
}
glm::vec2 &
GetTexCoord()
{
return texCoord;
}
glm::vec3 &
GetNormal()
{
return normal;
}
private:
glm::vec3 pos;
glm::vec2 texCoord;
glm::vec3 normal;
};
#endif
|