FastEngine 0.9.4
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
fge::LightComponent Class Reference

A base class that define a light component. More...

#include <C_lightSystem.hpp>

Inheritance diagram for fge::LightComponent:
fge::LightObstacle fge::ObjLight

Public Member Functions

 LightComponent (fge::LightComponent const &r)
 LightComponent (fge::LightComponent &&r) noexcept
LightComponentoperator= (fge::LightComponent const &r)
LightComponentoperator= (fge::LightComponent &&r) noexcept
void setLightSystem (fge::LightSystem &lightSystem)
 Set the light system to be used by this light.
virtual bool isObstacle () const
virtual void updateObstacleShape ()
void setDefaultLightSystem (fge::Scene &scene)
 Retrieve the default light system from a scene.

Protected Attributes

fge::LightSystemGate _g_lightSystemGate

Detailed Description

A base class that define a light component.

Member Function Documentation

◆ setDefaultLightSystem()

void fge::LightComponent::setDefaultLightSystem ( fge::Scene & scene)
inline

Retrieve the default light system from a scene.

Parameters
sceneThe scene to get the light system from

◆ setLightSystem()

void fge::LightComponent::setLightSystem ( fge::LightSystem & lightSystem)
inline

Set the light system to be used by this light.

Parameters
lightSystemThe light system to use

The documentation for this class was generated from the following file: