Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
|
Maintains a list of PunctualLight components. More...
#include <foray_lightmanager.hpp>
Public Member Functions | |
void | CreateOrUpdate () |
Collects lights and reuploads to device. | |
virtual void | Update (SceneUpdateInfo &updateInfo) override |
virtual int32_t | GetOrder () const override |
![]() | |
virtual Scene * | GetScene () override |
Scene this component is a part of. Casts mRegistry to Scene. | |
virtual Registry * | GetGlobals () override |
Global component registry. Returns mRegistry. | |
virtual core::Context * | GetContext () override |
Vulkan Context. Casts mRegistry to Scene and returns Scene->GetContext() | |
![]() | |
virtual | ~Component () |
Destructor. Provide virtual constructors in inheriting classes, to make sure they get finalized correctly. | |
![]() | |
NoMoveDefaults ()=default | |
NoMoveDefaults (const NoMoveDefaults &other)=delete | |
NoMoveDefaults (NoMoveDefaults &&other)=default | |
NoMoveDefaults & | operator= (const NoMoveDefaults &other)=delete |
![]() | |
virtual void | Update (TArg updateInfo)=0 |
Invoked first each frame. Use for changes to the node hierarchy and transforms. | |
void | Invoke (TArg updateInfo) |
Protected Attributes | |
std::vector< SimpleLight > | mSimplifiedlights |
std::unordered_map< ncomp::PunctualLight *, uint32_t > | mComponentArrayBindings |
util::DualBuffer | mBuffer |
![]() | |
Registry * | mRegistry = nullptr |
std::string | mName = "" |
Additional Inherited Members | |
![]() | |
using | TArg = SceneUpdateInfo & |
![]() | |
friend | Registry |
![]() | |
static const bool | ORDERED_EXECUTION = true |
static const int32_t | ORDER_TRANSFORM = 100 |
static const int32_t | ORDER_DEVICEUPLOAD = 200 |
![]() | |
virtual void | __makeMePolymorphic () |
Maintains a list of PunctualLight components.
void foray::scene::gcomp::LightManager::CreateOrUpdate | ( | ) |
Collects lights and reuploads to device.
|
inlineoverridevirtual |
Reimplemented from foray::scene::Component::UpdateCallback.
|
overridevirtual |
|
protected |
|
protected |
|
protected |