1 #include <vulkan/vulkan.h>
5 MeshVK::MeshVK(const MeshVK &mesh)
7 indices = mesh.indices;
8 vertices = mesh.vertices;
9 normals = mesh.normals;
12 MeshVK &MeshVK::operator=(const MeshVK &mesh)
17 /* what the copy constructor does */
18 indices = mesh.indices;
19 vertices = mesh.vertices;
20 normals = mesh.normals;
31 void MeshVK::update_vertex_data()
33 if(vertices.empty()) {
34 printf("empty vertices!\n");
38 // if(num_vertices != vertices.size()) {
42 void MeshVK::draw() const
46 void MeshVK::draw_normals(float scale) const