-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMeshModel.h
41 lines (30 loc) · 885 Bytes
/
MeshModel.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
#pragma once
#include <vector>
#include <glm/glm.hpp>
#include <assimp/scene.h>
#include "Mesh.h"
class MeshModel
{
public:
MeshModel(std::vector<Mesh> newMeshList);
size_t getMeshCount();
Mesh* getMesh(size_t index);
glm::mat4 getModel();
void setModel(glm::mat4 newModel);
void destroyMeshModel();
static std::vector<std::string> LoadMaterials(const aiScene * scene);
static std::vector<Mesh> LoadNode(
VkPhysicalDevice newPhysicalDevice,
VkDevice newDevice,
VkQueue transferQueue, VkCommandPool transferCommandPool,
aiNode * node, const aiScene * scene, std::vector<int> matToTex);
static Mesh LoadMesh(
VkPhysicalDevice newPhysicalDevice,
VkDevice newDevice,
VkQueue transferQueue, VkCommandPool transferCommandPool,
aiMesh* mesh, const aiScene* scene, std::vector<int> matToTex
);
private:
std::vector<Mesh> meshList;
glm::mat4 model;
};