Nebula
Loading...
Searching...
No Matches
renderevent.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
13#include "core/types.h"
14
15//------------------------------------------------------------------------------
16namespace CoreGraphics
17{
19{
20public:
22 enum Code
23 {
27 DeviceLost, // D3D9 only: the render device has been lost
28 DeviceRestored, // D3D9 only: the render device has been restored
29 };
30
36 Code GetEventCode() const;
37
38private:
40};
41
42//------------------------------------------------------------------------------
45inline
47 code(InvalidCode)
48{
49 // empty
50}
51
52//------------------------------------------------------------------------------
55inline
57 code(c)
58{
59 // empty
60}
61
62//------------------------------------------------------------------------------
65inline
68{
69 return this->code;
70}
71
72} // namespace CoreGraphics
73//------------------------------------------------------------------------------
74
Render events are sent by the RenderDevice to registered render event handlers.
Definition renderevent.h:19
RenderEvent()
default constructor
Definition renderevent.h:46
Code
event codes
Definition renderevent.h:23
@ DeviceClose
Definition renderevent.h:26
@ InvalidCode
Definition renderevent.h:24
@ DeviceLost
Definition renderevent.h:27
@ DeviceRestored
Definition renderevent.h:28
@ DeviceOpen
Definition renderevent.h:25
Code GetEventCode() const
get event code
Definition renderevent.h:67
Code code
Definition renderevent.h:39
Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
Definition accelerationstructure.h:24