goat3d

view src/light.h @ 8:cd71f0b92f44

a bit more...
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 21 Aug 2013 05:52:28 +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_