dungeon_crawler
diff prototype/src/light.h @ 21:0588f8a1a351
converting LIGHT meshes to lights
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 21 Aug 2012 06:33:36 +0300 |
parents | 158de53b4e18 |
children | fa8f89d06f6f |
line diff
1.1 --- a/prototype/src/light.h Tue Aug 21 04:57:33 2012 +0300 1.2 +++ b/prototype/src/light.h Tue Aug 21 06:33:36 2012 +0300 1.3 @@ -15,6 +15,8 @@ 1.4 virtual void set_intensity(float val); 1.5 virtual void set_color(const Color &col); 1.6 1.7 + virtual Color get_color(bool with_intensity = true) const; 1.8 + 1.9 virtual void use(int id = 0) const; 1.10 }; 1.11 1.12 @@ -22,6 +24,7 @@ 1.13 protected: 1.14 Vector3 pos; 1.15 float atten[3]; 1.16 + float radius; 1.17 1.18 public: 1.19 PointLight(); 1.20 @@ -30,6 +33,9 @@ 1.21 void set_position(const Vector3 &pos); 1.22 void set_attenuation(float att_const, float att_lin, float att_quad); 1.23 1.24 + void set_radius(float rad); 1.25 + float get_radius() const; 1.26 + 1.27 virtual void use(int id = 0) const; 1.28 }; 1.29