Public Types |
| enum | TLightMode { DirectionalLight,
PointLight,
SpotLight
} |
Public Methods |
|
| virtual void | setupDirectional (const NLMISC::CRGBA &ambiant, const NLMISC::CRGBA &diffuse, const NLMISC::CRGBA &specular, const NLMISC::CVector &direction, float constant=1, float linear=0, float quadratic=0)=0 |
| | Quick setup a directional light. More...
|
| virtual void | setupPointLight (const NLMISC::CRGBA &ambiant, const NLMISC::CRGBA &diffuse, const NLMISC::CRGBA &specular, const NLMISC::CVector &position, const NLMISC::CVector &direction, float constant=1, float linear=0, float quadratic=0)=0 |
| | Quick setup a point light. More...
|
| virtual void | setupSpotLight (const NLMISC::CRGBA &ambiant, const NLMISC::CRGBA &diffuse, const NLMISC::CRGBA &specular, const NLMISC::CVector &position, const NLMISC::CVector &direction, float exponent, float cutoff, float constant=1, float linear=0, float quadratic=0)=0 |
| | Quick setup a spotlight. More...
|
| virtual void | setupAttenuation (float farAttenuationBegin, float farAttenuationEnd)=0 |
| | Setup attenuation with begin and end attenuation distance. More...
|
| virtual void | setNoAttenuation ()=0 |
| | Set no attenuation. More...
|
| virtual void | setupSpotExponent (float hotSpotAngle)=0 |
| | Setup spot exponent with angle of the hotspot. More...
|
|
| virtual void | setMode (ULight::TLightMode mode)=0 |
| | Set the light mode. More...
|
| virtual void | setAmbiant (const NLMISC::CRGBA &ambiant)=0 |
| | Set the ambiant color of the light. More...
|
| virtual void | setDiffuse (const NLMISC::CRGBA &diffuse)=0 |
| | Set the diffuse color of the light. More...
|
| virtual void | setSpecular (const NLMISC::CRGBA &specular)=0 |
| | Set the specular color of the light. More...
|
| virtual void | setPosition (const NLMISC::CVector &position)=0 |
| | Set the position of the light. More...
|
| virtual void | setDirection (const NLMISC::CVector &direction)=0 |
| | Set the direction of the light. More...
|
| virtual void | setExponent (float exponent)=0 |
| | Set the Intensity distribution of the light. More...
|
| virtual void | setCutoff (float cutoff)=0 |
| | Set the cutoff of the light in radian. More...
|
| virtual void | setConstantAttenuation (float constant)=0 |
| | Set constant attenuation. More...
|
| virtual void | setLinearAttenuation (float linear)=0 |
| | Set linear attenuation. More...
|
| virtual void | setQuadraticAttenuation (float quadratic)=0 |
| | Set quadratic attenuation. More...
|
|
| virtual ULight::TLightMode | getMode () const=0 |
| | Get the light mode. More...
|
| virtual NLMISC::CRGBA | getAmbiant () const=0 |
| | Get the ambiant color of the light. More...
|
| virtual NLMISC::CRGBA | getDiffuse () const=0 |
| | Get the diffuse color of the light. More...
|
| virtual NLMISC::CRGBA | getSpecular () const=0 |
| | Get the specular color of the light. More...
|
| virtual NLMISC::CVector | getPosition () const=0 |
| | Get the position of the light. More...
|
| virtual NLMISC::CVector | getDirection () const=0 |
| | Get the direction of the light. More...
|
| virtual float | getExponent () const=0 |
| | Get the exponent of the light. More...
|
| virtual float | getCutoff () const=0 |
| | Get the cutoff of the light in radian. More...
|
| virtual float | getConstantAttenuation () const=0 |
| | Get constant attenuation. More...
|
| virtual float | getLinearAttenuation () const=0 |
| | Get linear attenuation. More...
|
| virtual float | getQuadraticAttenuation () const=0 |
| | Get quadratic attenuation. More...
|
Static Public Methods |
| ULight * | createLight () |
| | This is the static function create a stand alone light. More...
|