#include <SO3Light.h>
Public Types | |
| enum | LightType { SO3_POINT_LIGHT = 0, SO3_DIRECTIONAL_LIGHT = 1, SO3_SPOTLIGHT_LIGHT = 2 } |
Public Member Functions | |
| SLight (SScene *parent, std::string lightName) | |
| ~SLight () | |
| void | SetDiffuseColour (int diffuseColor) |
| int | GetDiffuseColour () |
| void | SetSpecularColour (int specularColor) |
| int | GetSpecularColour () |
| void | SetPowerScale (float powerScale) |
| float | GetPowerScale () |
| void | SetVisible (bool isVisible) |
| bool | GetVisible () |
| void | SetAttenuation (float range, float constant, float linear, float quadratic) |
| Ogre::Vector4 | GetAttenuation () |
| void | SetShadowFarDistance (float distance) |
| float | GetShadowFarDistance () |
| void | SetType (LightType type) |
| LightType | GetType () |
| void | SetSpotlightInnerAngle (float radianAngle) |
| float | GetSpotlightInnerAngle () |
| void | SetSpotlightOuterAngle (float radianAngle) |
| float | GetSpotlightOuterAngle () |
| void | SetSpotlightFalloff (float value) |
| float | GetSpotlightFalloff () |
| virtual void | SetCastShadows (bool castShadows) |
| virtual bool | GetCastShadows () |
| virtual void | SetRenderingDistance (float distance) |
| virtual float | GetRenderingDistance () |
| virtual Ogre::Vector3 | GetBoundingBoxSize () |
| virtual Ogre::Vector3 | GetBoundingBoxCenter () |
Definition at line 42 of file SO3Light.h.
| enum SLight::LightType |
Definition at line 45 of file SO3Light.h.
| SLight::SLight | ( | SScene * | parent, |
| std::string | lightName | ||
| ) |
Constructor
Definition at line 12 of file SO3Light.cpp.
| SLight::~SLight | ( | ) |
Definition at line 28 of file SO3Light.cpp.
| Ogre::Vector4 SLight::GetAttenuation | ( | ) |
Definition at line 80 of file SO3Light.cpp.
| Ogre::Vector3 SLight::GetBoundingBoxCenter | ( | ) | [virtual] |
Reimplemented from SNode.
Definition at line 163 of file SO3Light.cpp.
| Ogre::Vector3 SLight::GetBoundingBoxSize | ( | ) | [virtual] |
Reimplemented from SNode.
Definition at line 158 of file SO3Light.cpp.
| bool SLight::GetCastShadows | ( | ) | [virtual] |
Reimplemented from SNode.
Definition at line 143 of file SO3Light.cpp.
| int SLight::GetDiffuseColour | ( | ) |
Definition at line 40 of file SO3Light.cpp.
| float SLight::GetPowerScale | ( | ) |
Definition at line 60 of file SO3Light.cpp.
| float SLight::GetRenderingDistance | ( | ) | [virtual] |
Reimplemented from SNode.
Definition at line 153 of file SO3Light.cpp.
| float SLight::GetShadowFarDistance | ( | ) |
Definition at line 93 of file SO3Light.cpp.
| int SLight::GetSpecularColour | ( | ) |
Definition at line 50 of file SO3Light.cpp.
| float SLight::GetSpotlightFalloff | ( | ) |
Definition at line 133 of file SO3Light.cpp.
| float SLight::GetSpotlightInnerAngle | ( | ) |
Definition at line 113 of file SO3Light.cpp.
| float SLight::GetSpotlightOuterAngle | ( | ) |
Definition at line 123 of file SO3Light.cpp.
| SLight::LightType SLight::GetType | ( | ) |
Definition at line 103 of file SO3Light.cpp.
| bool SLight::GetVisible | ( | ) |
Reimplemented from SNode.
Definition at line 70 of file SO3Light.cpp.
| void SLight::SetAttenuation | ( | float | range, |
| float | constant, | ||
| float | linear, | ||
| float | quadratic | ||
| ) |
Definition at line 75 of file SO3Light.cpp.
| void SLight::SetCastShadows | ( | bool | castShadows ) | [virtual] |
Reimplemented from SNode.
Definition at line 138 of file SO3Light.cpp.
| void SLight::SetDiffuseColour | ( | int | diffuseColor ) |
Definition at line 35 of file SO3Light.cpp.
| void SLight::SetPowerScale | ( | float | powerScale ) |
Definition at line 55 of file SO3Light.cpp.
| void SLight::SetRenderingDistance | ( | float | distance ) | [virtual] |
Reimplemented from SNode.
Definition at line 148 of file SO3Light.cpp.
| void SLight::SetShadowFarDistance | ( | float | distance ) |
Definition at line 88 of file SO3Light.cpp.
| void SLight::SetSpecularColour | ( | int | specularColor ) |
Definition at line 45 of file SO3Light.cpp.
| void SLight::SetSpotlightFalloff | ( | float | value ) |
Definition at line 128 of file SO3Light.cpp.
| void SLight::SetSpotlightInnerAngle | ( | float | radianAngle ) |
Definition at line 108 of file SO3Light.cpp.
| void SLight::SetSpotlightOuterAngle | ( | float | radianAngle ) |
Definition at line 118 of file SO3Light.cpp.
| void SLight::SetType | ( | LightType | type ) |
Definition at line 98 of file SO3Light.cpp.
| void SLight::SetVisible | ( | bool | isVisible ) |
Definition at line 65 of file SO3Light.cpp.
1.7.2