goat3dgfx
view src/light.h @ 34:3eb6c8f89fe1
merge
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 02 Mar 2014 17:41:10 +0200 |
parents | |
children |
line source
1 #ifndef GOATGFX_LIGHT_H_
2 #define GOATGFX_LIGHT_H_
4 #include "xform_node.h"
6 namespace goatgfx {
8 class Light : public XFormNode {
9 private:
10 Vector3 color;
11 Vector3 attenuation;
13 bool cast_shadows;
15 public:
16 Light();
18 void set_color(const Vector3 &color);
19 const Vector3 &get_color() const;
21 void set_attenuation(const Vector3 &att);
22 const Vector3 &get_attenuation() const;
24 void set_shadow_caster(bool s);
25 bool is_shadow_caster() const;
26 };
28 } // namespace goatgfx
30 #endif // GOATGFX_LIGHT_H_