rayzor
view src/light.h @ 13:964f8ea5f095
missed quite a lot of things in my last commit apparently
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 12 Apr 2014 23:37:55 +0300 |
parents | d94a69933a71 |
children | 79609d482762 |
line source
1 #ifndef LIGHT_H_
2 #define LIGHT_H_
4 #include "vmath.h"
5 #include "snode.h"
7 class Light : public SceneNode {
8 private:
9 Vector3 color;
10 Vector3 atten;
12 public:
13 Light();
15 void set_color(const Vector3 &color);
16 const Vector3 &get_color() const;
18 void set_attenuation(const Vector3 &atten);
19 const Vector3 &get_attenuation() const;
21 void draw() const;
23 bool intersect(const Ray &ray, float *dist);
24 };
26 #endif // LIGHT_H_