-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMeshObject.h
48 lines (31 loc) · 920 Bytes
/
MeshObject.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
41
42
43
44
45
46
47
48
#ifndef MESHOBJECT_H_INCLUDED
#define MESHOBJECT_H_INCLUDED
#include "engine.h"
class CMeshObject: public IMMObject
{
public:
AUTO_SIZE;
CMeshObject(std::string name);
virtual ~CMeshObject();
void drawMesh();
void updateModel();
void LoadTexture(const char * image_path, GLuint* texture);
glm::mat4 Model;
glm::vec3 position;
glm::vec3 rotation;
glm::vec3 scale;
GLuint VertexArrayID;
GLuint vertexbuffersize;
GLuint vertexbuffer;
GLuint uvbuffer;
GLuint normalbuffer;
GLuint tangentbuffer;
GLuint bitangentbuffer;
GLuint tex_diffuse;
GLuint tex_specular;
GLuint tex_normal;
char* meshName;
private:
void LoadObj(std::string filename);
};
#endif // MESHOBJECT_H_INCLUDED