projects
/
demo
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
220e1d77fde5a6162e8dcd64e54447a4b3d78635
[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
};
25
26
class Object {
27
public:
28
Mat4 transform;
29
Material *material;
30
Mesh *mesh;
31
32
Object();
33
~Object();
34
};
35
36
#endif // OBJECT_H_