goat3d

diff src/light.h @ 8:cd71f0b92f44

a bit more...
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 21 Aug 2013 05:52:28 +0300
parents 2918358f5e6d
children 498ca7ac7047
line diff
     1.1 --- a/src/light.h	Wed Aug 21 04:00:22 2013 +0300
     1.2 +++ b/src/light.h	Wed Aug 21 05:52:28 2013 +0300
     1.3 @@ -1,8 +1,30 @@
     1.4  #ifndef LIGHT_H_
     1.5  #define LIGHT_H_
     1.6  
     1.7 -class Light {
     1.8 -	// TODO
     1.9 +#include <vmath/vmath.h>
    1.10 +#include "object.h"
    1.11 +
    1.12 +class Light : public Object {
    1.13 +public:
    1.14 +	Vector3 color;
    1.15 +	Vector3 attenuation;
    1.16 +	float max_dist;
    1.17 +
    1.18 +	Light();
    1.19 +};
    1.20 +
    1.21 +class DirLight : public Light {
    1.22 +public:
    1.23 +	Vector3 dir;
    1.24 +
    1.25 +	DirLight();
    1.26 +};
    1.27 +
    1.28 +class SpotLight : public DirLight {
    1.29 +public:
    1.30 +	float inner_cone, outer_cone;
    1.31 +
    1.32 +	SpotLight();
    1.33  };
    1.34  
    1.35  #endif	// LIGHT_H_