2f0c5fb8db676d7b29b2fb3632117bd5ff26fae0
[demo] / src / vulkan / mesh-vk.cc
1 #include <vulkan/vulkan.h>
2 #include "mesh-vk.h"
3
4 MeshVK::MeshVK() {}
5 MeshVK::MeshVK(const MeshVK &mesh)
6 {
7         indices = mesh.indices;
8         vertices = mesh.vertices;
9         normals = mesh.normals;
10 }
11
12 MeshVK &MeshVK::operator=(const MeshVK &mesh)
13 {
14         if(this == &mesh)
15                 return *this;
16
17         /* what the copy constructor does */
18         indices = mesh.indices;
19         vertices = mesh.vertices;
20         normals = mesh.normals;
21
22         return *this;
23 }
24
25 MeshVK::~MeshVK()
26 {
27         vertices.clear();
28         normals.clear();
29 }
30
31 void MeshVK::update_vertex_data()
32 {
33         if(vertices.empty()) {
34                 printf("empty vertices!\n");
35                 return;
36         }
37
38 //      if(num_vertices != vertices.size()) {
39 //      }
40 }
41
42 void MeshVK::draw() const
43 {
44 }
45
46 void MeshVK::draw_normals(float scale) const
47 {
48 }