Nebula
Loading...
Searching...
No Matches
threadsaferendereventhandler.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
15#include "threading/safequeue.h"
16
17//------------------------------------------------------------------------------
18namespace CoreGraphics
19{
40
41} // namespace CoreGraphics
42//------------------------------------------------------------------------------
43
A render event handler object is notified by the RenderDevice about noteworthy events.
Definition rendereventhandler.h:22
Render events are sent by the RenderDevice to registered render event handlers.
Definition renderevent.h:19
A thread-safe subclass of RenderEventHandler.
Definition threadsaferendereventhandler.h:21
__DeclareClass(ThreadSafeRenderEventHandler)
virtual ~ThreadSafeRenderEventHandler()
destructor
Definition threadsaferendereventhandler.cc:26
void HandlePendingEvents()
handle all pending events (called by consumer thread)
Definition threadsaferendereventhandler.cc:53
ThreadSafeRenderEventHandler()
constructor
Definition threadsaferendereventhandler.cc:18
Util::Array< RenderEvent > tmpPendingEvents
Definition threadsaferendereventhandler.h:38
Threading::SafeQueue< RenderEvent > eventQueue
Definition threadsaferendereventhandler.h:37
virtual bool HandleEvent(const RenderEvent &event)
called when an event should be processed, override this method in your subclass
Definition threadsaferendereventhandler.cc:71
virtual bool PutEvent(const RenderEvent &event)
called by RenderDevice when an event happens
Definition threadsaferendereventhandler.cc:38
Thread-safe version of Util::Queue.
Definition safequeue.h:27
Nebula's dynamic array class.
Definition array.h:60
Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
Definition accelerationstructure.h:24