DirLight.h

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

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