first git commit: scene, object, mesh, texture, shader, material etc
[demo] / src / vulkan / mesh-vk.cc
1 #include "mesh-vk.h"
2
3 MeshVK::MeshVK() {}
4 MeshVK::MeshVK(const MeshVK &mesh)
5 {
6         indices = mesh.indices;
7         vertices = mesh.vertices;
8         normals = mesh.normals;
9 }
10
11 MeshVK &MeshVK::operator=(const MeshVK &mesh)
12 {
13         if(this == &mesh)
14                 return *this;
15
16         /* what the copy constructor does */
17         indices = mesh.indices;
18         vertices = mesh.vertices;
19         normals = mesh.normals;
20
21         return *this;
22 }
23
24 MeshVK::~MeshVK()
25 {
26         vertices.clear();
27         normals.clear();
28 }
29
30 void MeshVK::update_vertex_data()
31 {
32 }