PointLight.h

Go to the documentation of this file.
00001 /* $Id:$ */
00002 
00003 #ifndef __POINT_LIGHT_SOURCE_H
00004 #define __POINT_LIGHT_SOURCE_H
00005 
00006 #include <esg/LightSource.h>
00007 #include <esg/emittance/PointEmittance.h>
00008 #include <esg/geometry/Point3D.h>
00009 
00010 namespace esg {
00011 
00017 class PointLight : public LightSource {
00018 public:
00030         PointLight (const Vector3& location,
00031                     const Color3f& intensity,
00032                     double         fadeDist  = .0,
00033                     double         fadePower = .0,
00034                     OID            oid       = 0,
00035                     const char*    name      = "")
00036             : LightSource(oid, name,
00037                           new PointEmittance(location, intensity,
00038                                              fadeDist, fadePower)) {}
00039 };
00040     
00041 }; // namespace
00042 
00043 #endif // __POINT_LIGHT_SOURCE_H

Generated on Wed Jun 28 12:24:28 2006 for esg by  doxygen 1.4.6