goat3d

view src/light.h @ 55:af1310ed212b

not done yet
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 19 Jan 2014 14:56:44 +0200
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_