-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModel.h
More file actions
34 lines (27 loc) · 768 Bytes
/
Model.h
File metadata and controls
34 lines (27 loc) · 768 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
33
34
//
// Created by madara on 03/12/16.
//
#ifndef MODELLOADING_MODEL_H
#define MODELLOADING_MODEL_H
#include "Includes.h"
#include "Mesh.h"
#include "Shader.h"
class Model {
public:
friend class Physics;
/* Functions */
Model(GLchar* path);
void Draw(Shader shader);
vector<Mesh> meshes;
private:
/* Model Data */
string directory;
vector<Texture> textures_loaded;
/* Functions */
void loadModel(string path);
void processNode(aiNode* node, const aiScene* scene);
Mesh processMesh(aiMesh* mesh, const aiScene* scene);
vector<Texture> loadMaterialTextures(aiMaterial *mat, aiTextureType type, Type textureType);
GLuint TextureFromFile(string name, string directory);
};
#endif //MODELLOADING_MODEL_H