Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | List of all members
foray::scene::Component::UpdateCallback Class Referenceabstract

Base class for implementing the update callback. More...

#include <foray_component.hpp>

Inheritance diagram for foray::scene::Component::UpdateCallback:
foray::Polymorphic foray::scene::gcomp::AnimationManager foray::scene::gcomp::CameraManager foray::scene::gcomp::DrawDirector foray::scene::gcomp::LightManager foray::scene::gcomp::TlasManager foray::scene::ncomp::FreeCameraController

Public Types

using TArg = SceneUpdateInfo &
 

Public Member Functions

virtual void Update (TArg updateInfo)=0
 Invoked first each frame. Use for changes to the node hierarchy and transforms.
 
void Invoke (TArg updateInfo)
 
virtual int32_t GetOrder () const
 

Static Public Attributes

static const bool ORDERED_EXECUTION = true
 
static const int32_t ORDER_TRANSFORM = 100
 
static const int32_t ORDER_DEVICEUPLOAD = 200
 

Additional Inherited Members

- Protected Member Functions inherited from foray::Polymorphic
virtual void __makeMePolymorphic ()
 

Detailed Description

Base class for implementing the update callback.

Member Typedef Documentation

◆ TArg

Member Function Documentation

◆ GetOrder()

virtual int32_t foray::scene::Component::UpdateCallback::GetOrder ( ) const
inlinevirtual

◆ Invoke()

void foray::scene::Component::UpdateCallback::Invoke ( TArg  updateInfo)
inline

◆ Update()

virtual void foray::scene::Component::UpdateCallback::Update ( TArg  updateInfo)
inlinepure virtual

Invoked first each frame. Use for changes to the node hierarchy and transforms.

Member Data Documentation

◆ ORDER_DEVICEUPLOAD

const int32_t foray::scene::Component::UpdateCallback::ORDER_DEVICEUPLOAD = 200
static

◆ ORDER_TRANSFORM

const int32_t foray::scene::Component::UpdateCallback::ORDER_TRANSFORM = 100
static

◆ ORDERED_EXECUTION

const bool foray::scene::Component::UpdateCallback::ORDERED_EXECUTION = true
static

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