rayzor
diff src/light.h @ 12:d94a69933a71
lots of stuff, can't remember
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 12 Apr 2014 23:28:24 +0300 |
parents | a826bf0fb169 |
children | 964f8ea5f095 |
line diff
1.1 --- a/src/light.h Thu Apr 10 08:42:33 2014 +0300 1.2 +++ b/src/light.h Sat Apr 12 23:28:24 2014 +0300 1.3 @@ -2,24 +2,25 @@ 1.4 #define LIGHT_H_ 1.5 1.6 #include "vmath.h" 1.7 +#include "xfnode.h" 1.8 1.9 -class Light { 1.10 +class Light : public SceneNode { 1.11 private: 1.12 - Vector3 pos; 1.13 Vector3 color; 1.14 Vector3 atten; 1.15 1.16 public: 1.17 Light(); 1.18 1.19 - void set_position(const Vector3 &pos); 1.20 - const Vector3 &get_position() const; 1.21 - 1.22 void set_color(const Vector3 &color); 1.23 const Vector3 &get_color() const; 1.24 1.25 void set_attenuation(const Vector3 &atten); 1.26 const Vector3 &get_attenuation() const; 1.27 + 1.28 + void draw() const; 1.29 + 1.30 + bool intersect(const Ray &ray, float *dist); 1.31 }; 1.32 1.33 #endif // LIGHT_H_