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
6class plWorld;
7class plViewHandle;
8
10class PL_RENDERERCORE_DLL plDebugRendererContext
11{
12public:
13 PL_ALWAYS_INLINE plDebugRendererContext()
14 : m_uiId(-1)
15 {
16 }
17
19 plDebugRendererContext(const plWorld* pWorld);
20
23
24 PL_ALWAYS_INLINE bool operator==(const plDebugRendererContext& other) const { return m_uiId == other.m_uiId; }
25
26private:
28
29 plUInt32 m_uiId;
30};
31
32
33template <>
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};
Used in plDebugRenderer to determine where debug geometry should be rendered.
Definition DebugRendererContext.h:11
Definition Declarations.h:64
A world encapsulates a scene graph of game objects and various component managers and their component...
Definition World.h:22
Helper struct to calculate the Hash of different types.
Definition HashingUtils.h:75