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

A base class to define an obstacle for the light system. More...

#include <C_lightSystem.hpp>

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

Public Member Functions

 LightObstacle (fge::Transformable const *transformableParent)
 LightObstacle (fge::LightObstacle const &r, fge::Transformable const *transformableParent)
 LightObstacle (fge::LightObstacle &&r, fge::Transformable const *transformableParent) noexcept
 LightObstacle (fge::LightObstacle const &r)=delete
 LightObstacle (fge::LightObstacle &&r) noexcept=delete
fge::LightObstacleoperator= (fge::LightObstacle const &r)
fge::LightObstacleoperator= (fge::LightObstacle &&r) noexcept
bool isObstacle () const final
fge::Transformable const & getTransformableParent () const
fge::ConcavePolygon const & getShape () const
void setLightSystem (fge::LightSystem &lightSystem)
 Set the light system to be used by this light.
virtual void updateObstacleShape ()
void setDefaultLightSystem (fge::Scene &scene)
 Retrieve the default light system from a scene.

Protected Attributes

fge::ConcavePolygon _g_shape
fge::LightSystemGate _g_lightSystemGate

Detailed Description

A base class to define an obstacle for the light system.

An obstacle is a group of points that define the shape of the object.

Member Function Documentation

◆ isObstacle()

bool fge::LightObstacle::isObstacle ( ) const
inlinenodiscardfinalvirtual

Reimplemented from fge::LightComponent.

◆ setDefaultLightSystem()

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

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)
inlineinherited

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: