goat3d
view src/light.h @ 40:a5c5cec3cb88
- added mesh attribute and face append functions
- added Int4 constructor
- continued the blender exporter
- fixed a bug in clean_filename which made it produce unterminated strings
- renamed clean_filename to goat3d_clean_filename and made it extern
- added call to goat3d_clean_filename in the mesh XML export code to cleanup ctm filenames
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 13 Oct 2013 10:14:19 +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_