goat3d

view src/light.h @ 29:3d669155709d

- switched the unix build to use the internal vmath/anim as well - fixed a memory corruption issue which was caused by including the system-wide installed version of the anim.h header file - started the ass2goat assimp->goat3d converter
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 29 Sep 2013 21:53:03 +0300
parents 2918358f5e6d
children 498ca7ac7047
line source
1 #ifndef LIGHT_H_
2 #define LIGHT_H_
4 #include <vmath/vmath.h>
5 #include "object.h"
7 class Light : public Object {
8 public:
9 Vector3 color;
10 Vector3 attenuation;
11 float max_dist;
13 Light();
14 };
16 class DirLight : public Light {
17 public:
18 Vector3 dir;
20 DirLight();
21 };
23 class SpotLight : public DirLight {
24 public:
25 float inner_cone, outer_cone;
27 SpotLight();
28 };
30 #endif // LIGHT_H_