goat3d
view src/light.h @ 21:0e31f2c3f29d
macfix
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 27 Sep 2013 07:14:27 +0300 |
parents | 2918358f5e6d |
children | 498ca7ac7047 |
line source
1 #ifndef LIGHT_H_
2 #define LIGHT_H_
4 #include <vmath/vmath.h>
5 #include "object.h"
7 class Light : public Object {
8 public:
9 Vector3 color;
10 Vector3 attenuation;
11 float max_dist;
13 Light();
14 };
16 class DirLight : public Light {
17 public:
18 Vector3 dir;
20 DirLight();
21 };
23 class SpotLight : public DirLight {
24 public:
25 float inner_cone, outer_cone;
27 SpotLight();
28 };
30 #endif // LIGHT_H_