OROCHI
 
Loading...
Searching...
No Matches
GxSysToolUtility.h
Go to the documentation of this file.
1//===========================================================================
9//===========================================================================
10#pragma once
11
12#if GX_DEVELOP
13GX_UTILITY_NAMESPACE_BEGIN()
14//===========================================================================
16//===========================================================================
17class GxSysToolUtility : public GxSysTool
18{
19 //-------------------------------------------------------------
21 //-------------------------------------------------------------
23public:
24 // RTTI定義
25 GX_RTTI_ABSTRACT_CLASS(GxSysToolUtility, GxSysTool )
26 // ClassBase継承クラス用禁止宣言
27 GX_PROHIBIT_CLASS_BASE(GxSysToolUtility)
28
29
30 //-------------------------------------------------------------
32 //-------------------------------------------------------------
34
36 GxSysToolUtility(void);
38 ~GxSysToolUtility(void) override {}
39
41 //-------------------------------------------------------------------------
43 //-------------------------------------------------------------------------
45
46protected:
48 void addMenuBarTableFile(GxPropertyTable& table) override;
50 void addMenuBarTableView(GxPropertyTable& table) override;
51public:
52#if defined(_WINDOWS)
54 void eventAutoFinalizeFbx(void);
55#endif //_WINDOWS
57 void setDevelopRenderOff(void);
59 void setDevelopRenderNormal(void);
61 void setDevelopRenderTangent(void);
63 void setDevelopRenderBinormal(void);
65 void setDevelopRenderMipmapLevel(void);
67 void setDevelopRenderDiffuseLighting(void);
69 void setDevelopRenderSpecularLighting(void);
71 void setDevelopRenderSsao(void);
73 void setDevelopRenderHighSpeed(void);
75 void setDevelopRenderWireFrame(void);
77 void setDevelopRenderWireFrameNoDepthTest(void);
78
80 void setCameraFree( void );
81
83 GxString getDefaultBackgroundResource(void) override;
85 s32 getDefaultCharacterMotionNo(void) override;
86
88 void draw3DQuadTextureF(const GxVector3& position0, const GxVector3& position1, const GxVector3& position2, const GxVector3& position3, const GxColor color, GxFloat2& uv0, GxFloat2& uv1, GxFloat2& uv2, GxFloat2& uv3, PRIMITIVE_FILL_MODE fillMode = PRIMITIVE_FILL_MODE::SOLID, const GxPrimitiveMaterial& material = GxPrimitiveMaterial::DEFAULT_3D, u32 viewFlag = 0xFFFFFFFF);
89
91 //-------------------------------------------------------------------------
93 //-------------------------------------------------------------------------
95public:
97 GX_FORCE_INLINE void getFilterEnable(void* const pValue) { *static_cast<b32*>(const_cast<void*>(pValue)) = getGxSysFilterBase()->isEnable(); }
99 GX_FORCE_INLINE void setFilterEnable(const void* const pValue) { getGxSysFilterBase()->setEnable(*static_cast<b32*>(const_cast<void*>(pValue))); }
101 GX_FORCE_INLINE void getFilterAntialiasEnable(void* const pValue) { *static_cast<b32*>(const_cast<void*>(pValue)) = getGxSysFilterBase()->isEnableAntialias(); }
103 GX_FORCE_INLINE void setFilterAntialiasEnable(const void* const pValue) { getGxSysFilterBase()->setEnableAntialias(*static_cast<b32*>(const_cast<void*>(pValue))); }
105 GX_FORCE_INLINE void getEffectEnable(void* const pValue) { *static_cast<b32*>(const_cast<void*>(pValue)) = getGxSysEffect()->isEnable(); }
107 GX_FORCE_INLINE void setEffectEnable(const void* const pValue) { getGxSysEffect()->setEnableFlag(*static_cast<b32*>(const_cast<void*>(pValue))); }
109 GX_FORCE_INLINE void getGlobalIlluminationEnable(void* const pValue) { *static_cast<b32*>(const_cast<void*>(pValue)) = getGxSysLight()->isEnableGlobalIllumination(); }
111 GX_FORCE_INLINE void setGlobalIlluminationEnable(const void* const pValue) { getGxSysLight()->setEnableGlobalIllumination(*static_cast<b32*>(const_cast<void*>(pValue))); }
113 GX_FORCE_INLINE void getSoundDevelopRender(void* const pValue) { *static_cast<b32*>(const_cast<void*>(pValue)) = getGxSysSoundBase()->isDevelopRender(); }
115 GX_FORCE_INLINE void setSoundDevelopRender(const void* const pValue) { getGxSysSoundBase()->setDevelopRender(*static_cast<b32*>(const_cast<void*>(pValue))); }
117 GX_FORCE_INLINE void getDevelopRender(void* const pValue) { *static_cast<b32*>(const_cast<void*>(pValue)) = !isDrawFlag(DRAW_FLAG_INDEX::ALL_OFF); }
119 GX_FORCE_INLINE void setDevelopRender(const void* const pValue) { setDrawFlag(DRAW_FLAG_INDEX::ALL_OFF, !*static_cast<b32*>(const_cast<void*>(pValue))); }
120
122 b32 getDevelopRenderLight(GxUnitLightBase::DEVELOP_FLAG flag);
124 void setDevelopRenderLight(GxUnitLightBase::DEVELOP_FLAG flag, b32 state);
126 void getDevelopRenderLightShowObject(void* const pValue);
128 void setDevelopRenderLightShowObject( const void* const pValue );
130 void getDevelopRenderLightShowRange(void* const pValue);
132 void setDevelopRenderLightShowRange( const void* const pValue );
133
135 void getDrawBackgroundObject(void* const pValue);
137 void setDrawBackgroundObject( const void* const pValue );
139 void getDrawBackgroundMesh(void* const pValue);
141 void setDrawBackgroundMesh( const void* const pValue );
142
144 void getDrawObjectHit(void* const pValue);
146 void setDrawObjectHit( const void* const pValue );
147
149 void getDrawEventHit(void* const pValue);
151 void setDrawEventHit( const void* const pValue );
152
154 void getDrawAttackHit(void* const pValue);
156 void setDrawAttackHit( const void* const pValue );
157
159 void getDrawDynamics(void* const pValue);
161 void setDrawDynamics( const void* const pValue );
162
164 void getDrawDynamicsConstraint(void* const pValue);
166 void setDrawDynamicsConstraint( const void* const pValue );
167
169};
170
171// アクセスインターフェイス
172GX_FORCE_INLINE GxSysToolUtility* getGxSysToolUtility(void){ return static_cast<GxSysToolUtility*>(getGxSysTool()); }
173
174GX_UTILITY_NAMESPACE_END()
175
176#endif //GX_DEVELOP
#define GX_PROHIBIT_CLASS_BASE(__CLASS__)
GxClassBase継承の禁止宣言
Definition GxBase.h:240
PRIMITIVE_FILL_MODE
塗りつぶしモード
Definition GxPrimitive.h:31
@ SOLID
塗りつぶし
プロパティテーブルクラス
Definition GxProperty.h:1641
GX_FORCE_INLINE void setEnableFlag(const b32 enableFlag)
描画の有効フラグ設定
Definition GxSysEffect.h:49
GX_FORCE_INLINE b32 isEnable(void) const
描画の有効フラグ判定
Definition GxSysEffect.h:47
virtual GX_FORCE_INLINE void setEnableAntialias(b32)
アンチエリアスの有効/無効を設定
Definition GxSysFilterBase.h:107
virtual GX_FORCE_INLINE b32 isEnable(void) const
全フィルタの有効/無効を取得
Definition GxSysFilterBase.h:89
virtual GX_FORCE_INLINE void setEnable(b32)
全フィルタの有効/無効を設定
Definition GxSysFilterBase.h:91
virtual GX_FORCE_INLINE b32 isEnableAntialias(void) const
アンチエリアスの有効/無効を取得
Definition GxSysFilterBase.h:105
GX_FORCE_INLINE b32 isEnableGlobalIllumination(void) const
GIの有効判定
Definition GxSysLight.h:97
GX_FORCE_INLINE void setEnableGlobalIllumination(b32 enable)
GIの有効設定
Definition GxSysLight.h:99
Definition GxColor.h:21
2次元浮動小数点数クラス
Definition GxStruct.h:22
プリミティブマテリアル
Definition GxPrimitive.h:103
static const GxPrimitiveMaterial DEFAULT_3D
3Dデフォルト
Definition GxPrimitive.h:122
文字列型クラス
Definition GxString.h:18
3次元ベクトル
Definition GxVector.h:245
32bitブーリアン
Definition GxDefine.h:173