goat3d
annotate src/light.h @ 23:b59a3650ed51
mac fixes
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 27 Sep 2013 07:20:22 +0300 |
parents | 2918358f5e6d |
children | 498ca7ac7047 |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef LIGHT_H_ |
nuclear@0 | 2 #define LIGHT_H_ |
nuclear@0 | 3 |
nuclear@8 | 4 #include <vmath/vmath.h> |
nuclear@8 | 5 #include "object.h" |
nuclear@8 | 6 |
nuclear@8 | 7 class Light : public Object { |
nuclear@8 | 8 public: |
nuclear@8 | 9 Vector3 color; |
nuclear@8 | 10 Vector3 attenuation; |
nuclear@8 | 11 float max_dist; |
nuclear@8 | 12 |
nuclear@8 | 13 Light(); |
nuclear@8 | 14 }; |
nuclear@8 | 15 |
nuclear@8 | 16 class DirLight : public Light { |
nuclear@8 | 17 public: |
nuclear@8 | 18 Vector3 dir; |
nuclear@8 | 19 |
nuclear@8 | 20 DirLight(); |
nuclear@8 | 21 }; |
nuclear@8 | 22 |
nuclear@8 | 23 class SpotLight : public DirLight { |
nuclear@8 | 24 public: |
nuclear@8 | 25 float inner_cone, outer_cone; |
nuclear@8 | 26 |
nuclear@8 | 27 SpotLight(); |
nuclear@0 | 28 }; |
nuclear@0 | 29 |
nuclear@0 | 30 #endif // LIGHT_H_ |