goat3d

annotate src/light.h @ 60:0c3576325480

moving the exporter along slowly
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 30 Mar 2014 08:53:33 +0300
parents cd71f0b92f44
children dad392c710df
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@47 7 namespace g3dimpl {
nuclear@47 8
nuclear@8 9 class Light : public Object {
nuclear@8 10 public:
nuclear@8 11 Vector3 color;
nuclear@8 12 Vector3 attenuation;
nuclear@8 13 float max_dist;
nuclear@8 14
nuclear@8 15 Light();
nuclear@8 16 };
nuclear@8 17
nuclear@8 18 class DirLight : public Light {
nuclear@8 19 public:
nuclear@8 20 Vector3 dir;
nuclear@8 21
nuclear@8 22 DirLight();
nuclear@8 23 };
nuclear@8 24
nuclear@8 25 class SpotLight : public DirLight {
nuclear@8 26 public:
nuclear@8 27 float inner_cone, outer_cone;
nuclear@8 28
nuclear@8 29 SpotLight();
nuclear@0 30 };
nuclear@0 31
nuclear@47 32 } // namespace g3dimpl
nuclear@47 33
nuclear@0 34 #endif // LIGHT_H_