RavEngine
Loading...
Searching...
No Matches
RavEngine::Light Class Reference

#include <Light.hpp>

Inheritance diagram for RavEngine::Light:
[legend]
Collaboration diagram for RavEngine::Light:
[legend]

Public Member Functions

constexpr void SetColorRGBA (const decltype(color)&inColor)
 
constexpr const decltype(color) & GetColorRGBA () const
 
constexpr void SetIntensity (decltype(Intensity) inIntensity)
 
constexpr decltype(Intensity) GetIntensity () const
 
constexpr bool isInvalidated () const
 
constexpr void clearInvalidate ()
 
constexpr void SetIlluminationLayers (renderlayer_t layers)
 
constexpr auto GetIlluminationLayers ()
 
- Public Member Functions inherited from RavEngine::IDebugRenderable
virtual void DebugDraw (RavEngine::DebugDrawer &dbg, const Transform &transform) const =0
 

Protected Member Functions

constexpr void invalidate ()
 

Protected Attributes

bool tickInvalidated = true
 

Additional Inherited Members

- Public Types inherited from RavEngine::Queryable< Light, IDebugRenderable >
typedef std::array< ctti_t, ntypes > arraytype
 
- Static Public Member Functions inherited from RavEngine::Queryable< Light, IDebugRenderable >
static constexpr const arraytype & GetQueryTypes ()
 
- Public Attributes inherited from RavEngine::Queryable< Light, IDebugRenderable >
constexpr q_qt_def
 
- Public Attributes inherited from RavEngine::IDebugRenderable
bool debugEnabled = false
 
color_t debug_color = 0xFFFFFFFF
 
- Static Public Attributes inherited from RavEngine::Queryable< Light, IDebugRenderable >
static constexpr std::size_t ntypes
 

Detailed Description

Represents a light-emitting object. Lights can be constrained to specific objects with layers. By default, lights will illuminate objects on any layer.

Member Function Documentation

◆ SetIlluminationLayers()

constexpr void RavEngine::Light::SetIlluminationLayers ( renderlayer_t  layers)
inlineconstexpr

Set the layers that this light will illuminate. If a bit is unset, that layer is not illuminated.

Parameters
layersillumination bitmask

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