OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
LightGroup Class Referencefinal

#include <lightgroup.h>

Classes

class  Light
 

Public Member Functions

 LightGroup (const SceneGlobals &scene)
 
Light add (const zenkit::LightPreset &vob)
 
Light add (const zenkit::VLight &vob)
 
Light add (std::string_view preset)
 
size_t size () const
 
void tick (uint64_t time)
 
bool updateLights ()
 
auto & lightsSsbo () const
 
void prepareGlobals (Tempest::Encoder< Tempest::CommandBuffer > &cmd, uint8_t fId)
 
void dbgLights (DbgPainter &p) const
 

Detailed Description

Definition at line 14 of file lightgroup.h.

Constructor & Destructor Documentation

◆ LightGroup()

LightGroup::LightGroup ( const SceneGlobals scene)

Definition at line 110 of file lightgroup.cpp.

Member Function Documentation

◆ add() [1/3]

LightGroup::Light LightGroup::add ( const zenkit::LightPreset &  vob)

Definition at line 135 of file lightgroup.cpp.

◆ add() [2/3]

LightGroup::Light LightGroup::add ( const zenkit::VLight &  vob)

Definition at line 168 of file lightgroup.cpp.

◆ add() [3/3]

LightGroup::Light LightGroup::add ( std::string_view  preset)

Definition at line 174 of file lightgroup.cpp.

◆ dbgLights()

void LightGroup::dbgLights ( DbgPainter p) const

Definition at line 178 of file lightgroup.cpp.

◆ lightsSsbo()

auto & LightGroup::lightsSsbo ( ) const
inline

Definition at line 52 of file lightgroup.h.

◆ prepareGlobals()

void LightGroup::prepareGlobals ( Tempest::Encoder< Tempest::CommandBuffer > &  cmd,
uint8_t  fId 
)

Definition at line 338 of file lightgroup.cpp.

◆ size()

size_t LightGroup::size ( ) const
inline

Definition at line 48 of file lightgroup.h.

◆ tick()

void LightGroup::tick ( uint64_t  time)

Definition at line 308 of file lightgroup.cpp.

◆ updateLights()

bool LightGroup::updateLights ( )

Definition at line 326 of file lightgroup.cpp.


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