Nebula
Loading...
Searching...
No Matches
rendereventhandler.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
15#include "core/refcounted.h"
17
18//------------------------------------------------------------------------------
19namespace CoreGraphics
20{
22{
24public:
28 virtual ~RenderEventHandler();
29
31 virtual void OnAttach();
33 virtual void OnRemove();
35 virtual bool PutEvent(const RenderEvent& event);
36
37protected:
39 virtual bool HandleEvent(const RenderEvent& event);
40};
41
42} // namespace CoreGraphics
43//------------------------------------------------------------------------------
44
The common base class of Nebula.
Definition refcounted.h:38
A render event handler object is notified by the RenderDevice about noteworthy events.
Definition rendereventhandler.h:22
virtual void OnRemove()
called when the event handler is removed from the RenderDevice
Definition rendereventhandler.cc:42
virtual bool PutEvent(const RenderEvent &event)
called by RenderDevice when an event happens
Definition rendereventhandler.cc:55
__DeclareClass(RenderEventHandler)
RenderEventHandler()
constructor
Definition rendereventhandler.cc:16
virtual bool HandleEvent(const RenderEvent &event)
called when an event should be processed, override this method in your subclass
Definition rendereventhandler.cc:68
virtual ~RenderEventHandler()
destructor
Definition rendereventhandler.cc:24
virtual void OnAttach()
called when the event handler is attached to the RenderDevice
Definition rendereventhandler.cc:33
Render events are sent by the RenderDevice to registered render event handlers.
Definition renderevent.h:19
Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
Definition accelerationstructure.h:24