conworlds

diff src/light.h @ 13:283cdfa7dda2

added a crapload of code from goat3dgfx
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 24 Aug 2014 09:41:24 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/light.h	Sun Aug 24 09:41:24 2014 +0300
     1.3 @@ -0,0 +1,27 @@
     1.4 +#ifndef GOATGFX_LIGHT_H_
     1.5 +#define GOATGFX_LIGHT_H_
     1.6 +
     1.7 +#include "xform_node.h"
     1.8 +
     1.9 +
    1.10 +class Light : public XFormNode {
    1.11 +private:
    1.12 +	Vector3 color;
    1.13 +	Vector3 attenuation;
    1.14 +
    1.15 +	bool cast_shadows;
    1.16 +
    1.17 +public:
    1.18 +	Light();
    1.19 +
    1.20 +	void set_color(const Vector3 &color);
    1.21 +	const Vector3 &get_color() const;
    1.22 +
    1.23 +	void set_attenuation(const Vector3 &att);
    1.24 +	const Vector3 &get_attenuation() const;
    1.25 +
    1.26 +	void set_shadow_caster(bool s);
    1.27 +	bool is_shadow_caster() const;
    1.28 +};
    1.29 +
    1.30 +#endif	// GOATGFX_LIGHT_H_