Class DirectionalLightComponent

Inheritance Relationships

Base Type

Class Documentation

class DirectionalLightComponent : public Component

Component to apply a dynamic directional light to the scene, only the first created instance is used in case of multiple such components.

Public Functions

DirectionalLightComponent(Entity &owner, const JSON::json &data)
~DirectionalLightComponent()
Vector3 getDirection()
const DirectionalLight &getDirectionalLight() const
JSON::json getJSON() const

Get JSON representation of the component data needed to re-construct component from memory.

void draw()

Expose the component data with ImGui.