|
Hymn to Beauty
C++ 3D Engine
|
Component describing a point light. More...
#include <PointLight.hpp>
Public Member Functions | |
| PointLight () | |
| Create new point light. More... | |
| void | Serialize (Json::Value &node, bool load) override |
| Save or load component values to/from JSON. More... | |
Public Member Functions inherited from Component::SuperComponent | |
| SuperComponent () | |
| Create new SuperComponent. More... | |
| virtual | ~SuperComponent () |
| Destructor. More... | |
| void | Kill () |
| Kill the component, will be removed at the end of the frame. More... | |
| bool | IsKilled () const |
| Get whether component has been killed. More... | |
Public Attributes | |
| glm::vec3 | color = glm::vec3(1.0f, 1.0f, 1.0f) |
| Color. More... | |
| float | attenuation = 1.0f |
| Attenuation. More... | |
| float | intensity = 1.0f |
| Intensity. More... | |
| float | distance = 1.0f |
| Distance. More... | |
Public Attributes inherited from Component::SuperComponent | |
| Entity * | entity = nullptr |
| Pointer to which entity this component corresponds. More... | |
Component describing a point light.
| PointLight::PointLight | ( | ) |
Create new point light.
|
overridevirtual |
Save or load component values to/from JSON.
| node | The JSON node to save to or load from. |
| load | Whether to load (otherwise saves). |
Implements Component::SuperComponent.
| float Component::PointLight::attenuation = 1.0f |
Attenuation.
| glm::vec3 Component::PointLight::color = glm::vec3(1.0f, 1.0f, 1.0f) |
Color.
| float Component::PointLight::distance = 1.0f |
Distance.
| float Component::PointLight::intensity = 1.0f |
Intensity.