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