conworlds

view src/light.h @ 14:423d4e6728cb

removed data from hg
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 24 Aug 2014 09:43:58 +0300
parents
children
line source
1 #ifndef GOATGFX_LIGHT_H_
2 #define GOATGFX_LIGHT_H_
4 #include "xform_node.h"
7 class Light : public XFormNode {
8 private:
9 Vector3 color;
10 Vector3 attenuation;
12 bool cast_shadows;
14 public:
15 Light();
17 void set_color(const Vector3 &color);
18 const Vector3 &get_color() const;
20 void set_attenuation(const Vector3 &att);
21 const Vector3 &get_attenuation() const;
23 void set_shadow_caster(bool s);
24 bool is_shadow_caster() const;
25 };
27 #endif // GOATGFX_LIGHT_H_