OROCHI
 
Loading...
Searching...
No Matches
GxRenderNotifier.h
Go to the documentation of this file.
1//===========================================================================
10//===========================================================================
11#pragma once
12
13GX_CORE_NAMESPACE_BEGIN()
14
15class GxSysRenderBase;
16
17//===========================================================================
20//===========================================================================
22{
23 //-------------------------------------------------------------
25 //-------------------------------------------------------------
27public:
28 friend class GxRenderDevice;
29 // コピー禁止
31
32
33 //-------------------------------------------------------------
35 //-------------------------------------------------------------
37protected:
39 GxRenderNotifier(b32 callRender = false);
40
42 virtual ~GxRenderNotifier(void);
43
45 //-------------------------------------------------------------
47 //-------------------------------------------------------------
49public:
51 GX_FORCE_INLINE virtual void onLostDevice(void) {}
52
54 GX_FORCE_INLINE virtual b32 onResetDevice(void) { return true; }
55
56#if GX_DEVELOP
58 GX_FORCE_INLINE virtual GxString getRenderNotifierName(void) const { return ""; }
59#endif // GX_DEVELOP
60
62 //-------------------------------------------------------------
64 //-------------------------------------------------------------
66private:
67 GxRenderNotifier* _pNotifierPrevious;
68 GxRenderNotifier* _pNotifierNext;
69
71};
72
73//===========================================================================
76//===========================================================================
78{
79 //-------------------------------------------------------------
81 //-------------------------------------------------------------
83
84 friend class GxRenderDevice;
85 // コピー禁止
87
88
89 //-------------------------------------------------------------
91 //-------------------------------------------------------------
93protected:
96
98 virtual ~GxRenderNotifierForOnRender(void);
99
101 //-------------------------------------------------------------
103 //-------------------------------------------------------------
105public:
107 GX_FORCE_INLINE virtual void onRender(void) {}
108
109#if GX_DEVELOP
111 GX_FORCE_INLINE virtual GxString getRenderNotifierName(void) const { return ""; }
112#endif // GX_DEVELOP
113
115 //-------------------------------------------------------------
117 //-------------------------------------------------------------
119private:
120 GxRenderNotifierForOnRender* _pNotifierPrevious;
121 GxRenderNotifierForOnRender* _pNotifierNext;
122
124};
125
126GX_CORE_NAMESPACE_END()
#define GX_PROHIBIT_COPY(__CLASS__)
コピー禁止
Definition GxBase.h:233
描画関連の依存をこのクラスで吸収します
Definition GxRenderDevice.h:450
描画関連のイベントを通知します
Definition GxRenderNotifier.h:78
virtual GX_FORCE_INLINE void onRender(void)
描画通知
Definition GxRenderNotifier.h:107
virtual ~GxRenderNotifierForOnRender(void)
デストラクタ(インスタンス化禁止)
Definition GxRenderNotifier.cpp:53
GxRenderNotifierForOnRender(void)
コンストラクタ(インスタンス化禁止)
Definition GxRenderNotifier.cpp:44
描画関連のイベントを通知します
Definition GxRenderNotifier.h:22
virtual GX_FORCE_INLINE b32 onResetDevice(void)
デバイスのリセット後に通知
Definition GxRenderNotifier.h:54
virtual GX_FORCE_INLINE void onLostDevice(void)
デバイスが消失した時点で通知
Definition GxRenderNotifier.h:51
描画システムクラス
Definition GxSysRenderBase.h:115
文字列型クラス
Definition GxString.h:18
32bitブーリアン
Definition GxDefine.h:173