-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModel.h
More file actions
33 lines (24 loc) · 727 Bytes
/
Copy pathModel.h
File metadata and controls
33 lines (24 loc) · 727 Bytes
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
#pragma once
#include <vector>
#include <string>
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include "Mesh.h"
#include "Texture.h"
class Model
{
public:
Model();
void LoadModel(const std::string& fileName); //takes the filename of our model
void RenderModel();
void ClearModel();
~Model();
private:
void LoadNode(aiNode *node, const aiScene *scene); //node holds all the data. scene holds one specific value
void LoadMesh(aiMesh* mesh, const aiScene* scene);
void LoadMaterials(const aiScene* scene);
std::vector<Mesh*> meshList; //Holds all the meshes
std::vector<Texture*> textureList; //Holds all the textures
std::vector<unsigned int> meshToTex;
};