

Public Member Functions | |
| LightComponent (Entity *parent, const SColorf &color=SColorf(1.0f, 1.0f, 1.0f), f32 radius=100.0f) | |
| Constructor (default). | |
| ~LightComponent () | |
| Deconstructor. | |
| ILightSceneNode * | getLightSceneNode () |
| Returns a direct pointer to the ILightSceneNode. | |
| bool | getCastShadow () const |
| Returns whether this light casts shadows. | |
| E_LIGHT_TYPE | getLightType () const |
| Gets the light type. | |
| f32 | getRadius () const |
| Gets the light's radius of influence. | |
| void | setCastShadow (bool shadow=true) |
| Sets whether this light casts shadows. | |
| void | setLightType (E_LIGHT_TYPE type) |
| Sets the light type. | |
| void | setRadius (f32 radius) |
| Sets the light's radius of influence. | |
Static Public Member Functions | |
| static bool | parseXML (IXMLReader *file, Entity *entity) |
| Parses for a LightComponent. | |
XML:
<LightComponent> <!-- Properties --> </LightComponent>
Definition at line 33 of file LightComponent.h.
| LightComponent::LightComponent | ( | Entity * | parent, | |
| const SColorf & | color = SColorf(1.0f, 1.0f, 1.0f), |
|||
| f32 | radius = 100.0f | |||
| ) |
Constructor (default).
| parent | The parent entity to which the component should be added. | |
| color | Diffuse color of the light. | |
| radius | Radius of the light. |
Definition at line 23 of file LightComponent.cpp.
| LightComponent::~LightComponent | ( | ) |
| bool LightComponent::getCastShadow | ( | ) | const |
| ILightSceneNode * LightComponent::getLightSceneNode | ( | ) |
| E_LIGHT_TYPE LightComponent::getLightType | ( | ) | const |
| f32 LightComponent::getRadius | ( | ) | const |
| bool LightComponent::parseXML | ( | IXMLReader * | file, | |
| Entity * | entity | |||
| ) | [static] |
Parses for a LightComponent.
Reimplemented from SceneComponent.
Definition at line 89 of file LightComponent.cpp.
| void LightComponent::setCastShadow | ( | bool | shadow = true |
) |
Sets whether this light casts shadows.
XML:
<castShadow value="" />
| shadow | Value to enable or disable this option. |
Definition at line 71 of file LightComponent.cpp.
| void LightComponent::setLightType | ( | E_LIGHT_TYPE | type | ) |
Sets the light type.
XML:
<lightType value="" />
| type | The light type (see: Irrlicht API documentation) |
Definition at line 77 of file LightComponent.cpp.
| void LightComponent::setRadius | ( | f32 | radius | ) |
Sets the light's radius of influence.
XML:
<radius value="" />
| radius | The new radius. |
Definition at line 83 of file LightComponent.cpp.
1.5.8