00001
00002
00003 #ifndef __SPOT_LIGHT_SOURCE_H
00004 #define __SPOT_LIGHT_SOURCE_H
00005
00006 #include <esg/LightSource.h>
00007 #include <esg/emittance/SpotEmittance.h>
00008
00009 namespace esg {
00010
00016 class SpotLight : public LightSource {
00017 public:
00034 SpotLight (const Vector3& location,
00035 const Color3f& direction,
00036 const Color3f& intensity,
00037 float spreadAngle,
00038 char concentration,
00039 double fadeDist = .0,
00040 double fadePower = .0,
00041 OID oid = 0,
00042 const char* name = "")
00043 : LightSource(oid, name, new SpotEmittance(location,
00044 direction,
00045 intensity,
00046 fadeDist,
00047 fadePower,
00048 spreadAngle,
00049 concentration)) {}
00050 };
00051
00052 };
00053
00054 #endif // __SPOT_LIGHT_SOURCE_H