-
Notifications
You must be signed in to change notification settings - Fork 0
/
VertexMesh.h
43 lines (27 loc) · 845 Bytes
/
VertexMesh.h
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
39
40
41
42
43
#pragma once
#include "Vector3D.h"
#include "Vector2D.h"
class VertexMesh
{
public:
VertexMesh() : m_position(), m_texcoord(), m_normal()
{
}
VertexMesh(const Vector3D& position, const Vector2D& texcoord, const Vector3D& normal, const Vector3D& tangent, const Vector3D& binormal)
: m_position(position), m_texcoord(texcoord), m_normal(normal), m_tangent(tangent), m_binormal(binormal)
{
}
VertexMesh(const VertexMesh& vertex)
: m_position(vertex.m_position), m_texcoord(vertex.m_texcoord), m_normal(vertex.m_normal)
,m_tangent(vertex.m_tangent), m_binormal(vertex.m_binormal)
{
}
~VertexMesh()
{
}
Vector3D m_position;
Vector2D m_texcoord;
Vector3D m_normal;
Vector3D m_tangent;
Vector3D m_binormal;
};