-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathVertexData.h
More file actions
38 lines (31 loc) · 723 Bytes
/
Copy pathVertexData.h
File metadata and controls
38 lines (31 loc) · 723 Bytes
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
37
38
#ifndef VERTEXDATA_H
#define VERTEXDATA_H
#include <QVector3D>
#include <QVector2D>
// VertexData
struct VertexData
{
QVector3D position;
QVector2D texCoord;
QVector3D color;
public:
VertexData(QVector3D position, QVector2D texCoord, QVector3D color)
{
this->position = position;
this->texCoord = texCoord;
this->color = color;
}
VertexData(QVector3D position, QVector2D texCoord)
{
this->position = position;
this->texCoord = texCoord;
this->color = QVector3D();
}
VertexData()
{
this->position = QVector3D();
this->texCoord = QVector2D();
this->color = QVector3D();
}
};
#endif // VERTEXDATA_H