quick backup of the finished scene loader before I submit other parts
[demo] / src / object.h
1 #ifndef OBJECT_H_
2 #define OBJECT_H_
3
4 #include <string>
5
6 #include <gmath/gmath.h>
7
8 class Mesh;
9 class ShaderProgram;
10 class Texture;
11
12 enum OType {
13         OBJ_MESH,
14         OBJ_PT_LIGHT,
15         OBJ_CAMERA
16 };
17
18 struct Material {
19         Vec3 diffuse;
20         Vec3 specular;
21         float shininess;
22
23         Texture *dtex; // diffuse
24         std::string name;
25 };
26
27 class Object {
28 public:
29         Mat4 transform;
30         Material *material;
31         Mesh *mesh;
32
33         Object();
34         ~Object();
35 };
36
37 #endif // OBJECT_H_