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