Nebula
Loading...
Searching...
No Matches
threadsafedisplayeventhandler.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 display event handler object is notified by the DisplayDevice about noteworthy window events,...
Definition displayeventhandler.h:23
Display events are sent by the display device to registered display event handlers.
Definition displayevent.h:24
A thread-safe subclass of DisplayEventHandler.
Definition threadsafedisplayeventhandler.h:21
virtual bool HandleEvent(const DisplayEvent &event)
called when an event should be processed, override this method in your subclass
Definition threadsafedisplayeventhandler.cc:71
ThreadSafeDisplayEventHandler()
constructor
Definition threadsafedisplayeventhandler.cc:18
virtual bool PutEvent(const DisplayEvent &event)
called by DisplayDevice when an event happens
Definition threadsafedisplayeventhandler.cc:38
virtual ~ThreadSafeDisplayEventHandler()
destructor
Definition threadsafedisplayeventhandler.cc:26
Util::Array< DisplayEvent > tmpPendingEvents
Definition threadsafedisplayeventhandler.h:38
__DeclareClass(ThreadSafeDisplayEventHandler)
Threading::SafeQueue< DisplayEvent > eventQueue
Definition threadsafedisplayeventhandler.h:37
void HandlePendingEvents()
handle all pending events (called by consumer thread)
Definition threadsafedisplayeventhandler.cc:53
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