|
Thrive
|
A component for a light. More...
#include <light_system.h>
Classes | |
| struct | Properties |
| Properties. More... | |
Public Member Functions | |
| void | load (const StorageContainer &storage) override |
| Loads the component. More... | |
| void | setRange (Ogre::Real range) |
| Convenience function for setting sensible attenuation values. More... | |
| StorageContainer | storage () const override |
| Serializes the component. More... | |
Public Member Functions inherited from thrive::Component | |
| virtual | ~Component ()=0 |
| Destructor. | |
| bool | isVolatile () const |
| A volatile component is not serialized during a save. More... | |
| EntityId | owner () const |
| The entity this component belongs to. More... | |
| void | setVolatile (bool isVolatile) |
| Sets the volatile flag. More... | |
| void | setOwner (EntityId owner) |
| Sets the component's owner. More... | |
| virtual ComponentTypeId | typeId () const =0 |
| The component's type id. | |
| virtual std::string | typeName () const =0 |
| The component's type name. | |
Static Public Member Functions | |
| static luabind::scope | luaBindings () |
| Lua bindings. More... | |
Static Public Member Functions inherited from thrive::Component | |
| static luabind::scope | luaBindings () |
| Lua bindings. More... | |
Public Attributes | |
| Ogre::Light * | m_light = nullptr |
| Internal light, don't use this directly. | |
| Properties | m_properties |
| Properties. | |
A component for a light.
|
overridevirtual |
|
static |
Lua bindings.
Exposes:
| void OgreLightComponent::setRange | ( | Ogre::Real | range | ) |
Convenience function for setting sensible attenuation values.
This function sets the attenuation range and attenuation coefficients to sensible values, as desribed here.
| range | The light's range |
|
overridevirtual |
1.8.10