goat3d

view src/light.h @ 14:188c697b3b49

- added a document describing the goat3d file format chunk hierarchy - started an alternative XML-based file format - added the openctm library
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 26 Sep 2013 04:47:05 +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_