goat3d

view src/light.h @ 60:0c3576325480

moving the exporter along slowly
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 30 Mar 2014 08:53:33 +0300
parents cd71f0b92f44
children dad392c710df
line source
1 #ifndef LIGHT_H_
2 #define LIGHT_H_
4 #include <vmath/vmath.h>
5 #include "object.h"
7 namespace g3dimpl {
9 class Light : public Object {
10 public:
11 Vector3 color;
12 Vector3 attenuation;
13 float max_dist;
15 Light();
16 };
18 class DirLight : public Light {
19 public:
20 Vector3 dir;
22 DirLight();
23 };
25 class SpotLight : public DirLight {
26 public:
27 float inner_cone, outer_cone;
29 SpotLight();
30 };
32 } // namespace g3dimpl
34 #endif // LIGHT_H_