rayzor
annotate src/light.h @ 0:2a5340a6eee4
rayzor first commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 05 Apr 2014 08:46:27 +0300 |
parents | |
children | a826bf0fb169 |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef LIGHT_H_ |
nuclear@0 | 2 #define LIGHT_H_ |
nuclear@0 | 3 |
nuclear@0 | 4 #include "vmath.h" |
nuclear@0 | 5 |
nuclear@0 | 6 class Light { |
nuclear@0 | 7 private: |
nuclear@0 | 8 Vector3 pos; |
nuclear@0 | 9 Vector3 color; |
nuclear@0 | 10 Vector3 atten; |
nuclear@0 | 11 |
nuclear@0 | 12 public: |
nuclear@0 | 13 Light(); |
nuclear@0 | 14 |
nuclear@0 | 15 void set_position(const Vector3 &pos); |
nuclear@0 | 16 const Vector3 &get_position() const; |
nuclear@0 | 17 |
nuclear@0 | 18 void set_color(const Vector3 &color); |
nuclear@0 | 19 const Vector3 &get_color() const; |
nuclear@0 | 20 |
nuclear@0 | 21 void set_attenuation(const Vector3 &atten); |
nuclear@0 | 22 const Vector3 &get_attenuation() const; |
nuclear@0 | 23 }; |
nuclear@0 | 24 |
nuclear@0 | 25 #endif // LIGHT_H_ |