00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00027
00029 #ifndef __POINTLIGHT_H__
00030 #define __POINTLIGHT_H__
00031
00032 #include "X3DLightNode.h"
00033 #include "SFVec3f.h"
00034
00035 namespace H3D {
00036
00064 class H3DAPI_API PointLight : public X3DLightNode {
00065 public:
00067 PointLight( Inst< SFNode > _metadata = 0,
00068 Inst< SFFloat> _ambientIntensity = 0,
00069 Inst< SFColor> _color = 0,
00070 Inst< SFFloat> _intensity = 0,
00071 Inst< SFBool > _on = 0,
00072 Inst< SFVec3f> _attenuation = 0,
00073 Inst< SFVec3f> _location = 0,
00074 Inst< SFFloat> _radius = 0 );
00075
00077 virtual void enableGraphicsState();
00078
00093 auto_ptr< SFVec3f > attenuation;
00094
00101 auto_ptr< SFVec3f > location;
00102
00104 auto_ptr< SFFloat > radius;
00105
00107 static H3DNodeDatabase database;
00108 };
00109 }
00110
00111 #endif