-
Notifications
You must be signed in to change notification settings - Fork 0
/
LoadModel.h
51 lines (34 loc) · 815 Bytes
/
LoadModel.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
49
50
51
#ifndef LOADMODEL_H
#define LOADMODEL_H
#include <string>
#include <vector>
#include <map>
using namespace std;
#include "GraphObject.h"
class LoadModel
{
public:
vector <Model *> Modele;
GLuint vao;
GLuint vbo;
LoadModel();
LoadModel(string dir, string model_obj);
string ModelObjName;
string model_dir;
virtual int LoadFromFile(string plik) = 0;
virtual ~LoadModel();
int modelElemCount;
int modelVertCount;
Vertex * bufVert;
void wypelnijBufor();
virtual void Draw();
void init_vao();
virtual void init_vao(string model_obj) = 0;
void init_vao(string dir, string model_obj);
Model * retModel(string name);
Model * removeModel(string name);
void addModel(Model * model);
protected:
private:
};
#endif // LOADMODEL_H