Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | Protected Attributes | List of all members
foray::scene::CallbackDispatcher Class Reference

Type maintaining callback lists for event distribution. More...

#include <foray_callbackdispatcher.hpp>

Inheritance diagram for foray::scene::CallbackDispatcher:
foray::scene::Scene

Classes

struct  CallbackVector
 
struct  CallbackVector< TCallback, true >
 

Public Member Functions

virtual void InvokeUpdate (SceneUpdateInfo &updateInfo)
 
virtual void InvokeDraw (SceneDrawInfo &renderInfo)
 
virtual void InvokeOnEvent (const osi::Event *event)
 
virtual void InvokeOnResized (VkExtent2D event)
 

Public Attributes

friend Registry
 

Protected Attributes

CallbackVector< Component::OnEventCallbackmOnEvent = {}
 
CallbackVector< Component::UpdateCallbackmUpdate = {}
 
CallbackVector< Component::DrawCallbackmDraw = {}
 
CallbackVector< Component::OnResizedCallbackmOnResized = {}
 

Detailed Description

Type maintaining callback lists for event distribution.

Member Function Documentation

◆ InvokeDraw()

virtual void foray::scene::CallbackDispatcher::InvokeDraw ( SceneDrawInfo renderInfo)
virtual

◆ InvokeOnEvent()

virtual void foray::scene::CallbackDispatcher::InvokeOnEvent ( const osi::Event event)
virtual

◆ InvokeOnResized()

virtual void foray::scene::CallbackDispatcher::InvokeOnResized ( VkExtent2D  event)
virtual

◆ InvokeUpdate()

virtual void foray::scene::CallbackDispatcher::InvokeUpdate ( SceneUpdateInfo updateInfo)
virtual

Member Data Documentation

◆ mDraw

CallbackVector<Component::DrawCallback> foray::scene::CallbackDispatcher::mDraw = {}
protected

◆ mOnEvent

CallbackVector<Component::OnEventCallback> foray::scene::CallbackDispatcher::mOnEvent = {}
protected

◆ mOnResized

CallbackVector<Component::OnResizedCallback> foray::scene::CallbackDispatcher::mOnResized = {}
protected

◆ mUpdate

CallbackVector<Component::UpdateCallback> foray::scene::CallbackDispatcher::mUpdate = {}
protected

◆ Registry

friend foray::scene::CallbackDispatcher::Registry

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