Plasma Engine
2.0
Loading...
Searching...
No Matches
DebugRendererContext.h
1
#pragma once
2
3
#include <Foundation/Algorithm/HashingUtils.h>
4
#include <RendererCore/RendererCoreDLL.h>
5
6
class
plWorld
;
7
class
plViewHandle
;
8
10
class
PL_RENDERERCORE_DLL
plDebugRendererContext
11
{
12
public
:
13
PL_ALWAYS_INLINE
plDebugRendererContext
()
14
: m_uiId(-1)
15
{
16
}
17
19
plDebugRendererContext
(
const
plWorld
* pWorld);
20
22
plDebugRendererContext
(
const
plViewHandle
& hView);
23
24
PL_ALWAYS_INLINE
bool
operator==(
const
plDebugRendererContext
& other)
const
{
return
m_uiId == other.m_uiId; }
25
26
private
:
27
friend
struct
plHashHelper
<
plDebugRendererContext
>;
28
29
plUInt32 m_uiId;
30
};
31
32
33
template
<>
34
struct
plHashHelper
<
plDebugRendererContext
>
35
{
36
PL_ALWAYS_INLINE
static
plUInt32 Hash(
plDebugRendererContext
value) {
return
plHashHelper<plUInt32>::Hash
(value.m_uiId); }
37
38
PL_ALWAYS_INLINE
static
bool
Equal(
plDebugRendererContext
a,
plDebugRendererContext
b) {
return
a == b; }
39
};
plDebugRendererContext
Used in plDebugRenderer to determine where debug geometry should be rendered.
Definition
DebugRendererContext.h:11
plViewHandle
Definition
Declarations.h:64
plWorld
A world encapsulates a scene graph of game objects and various component managers and their component...
Definition
World.h:22
plHashHelper
Helper struct to calculate the Hash of different types.
Definition
HashingUtils.h:75
Code
Engine
RendererCore
Debug
DebugRendererContext.h
Generated by
1.11.0