rayzor

diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/light.h	Sat Apr 05 08:46:27 2014 +0300
     1.3 @@ -0,0 +1,25 @@
     1.4 +#ifndef LIGHT_H_
     1.5 +#define LIGHT_H_
     1.6 +
     1.7 +#include "vmath.h"
     1.8 +
     1.9 +class Light {
    1.10 +private:
    1.11 +	Vector3 pos;
    1.12 +	Vector3 color;
    1.13 +	Vector3 atten;
    1.14 +
    1.15 +public:
    1.16 +	Light();
    1.17 +
    1.18 +	void set_position(const Vector3 &pos);
    1.19 +	const Vector3 &get_position() const;
    1.20 +
    1.21 +	void set_color(const Vector3 &color);
    1.22 +	const Vector3 &get_color() const;
    1.23 +
    1.24 +	void set_attenuation(const Vector3 &atten);
    1.25 +	const Vector3 &get_attenuation() const;
    1.26 +};
    1.27 +
    1.28 +#endif	// LIGHT_H_