-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobjmodel.h
44 lines (30 loc) · 833 Bytes
/
objmodel.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
/* START OF 'objmodel.h' FILE */
#pragma once
#ifndef OBJMODEL_H
#define OBJMODEL_H
#include "material.h"
#include "intrusiveptr.h"
// Forward declaration
class OBJECT_NODE;
class objMODEL {
friend class DISPLAY;
friend class RENDER;
friend class SHADER_MODEL;
friend INTRUSIVE_PTR<OBJECT_NODE> LoadObj (const std::string & fileName);
public:
objMODEL (void);
objMODEL (const objMODEL & prim);
~objMODEL (void);
objMODEL & operator= (const objMODEL & prim);
private:
MATERIAL mat;
std::vector<glm::vec3> vertices;
std::vector<glm::vec3> normals;
std::vector<size_t> vertexIndices;
std::vector<size_t> normalIndices;
std::vector<COLORREF> vertexColors;
std::vector<glm::vec2> uvCoords;
std::vector<size_t> uvIndices;
};
#endif // OBJMODEL_H
/* END OF 'objmodel.h' FILE */