OROCHI
 
Loading...
Searching...
No Matches
GxResMaterialFunction.h
Go to the documentation of this file.
1//===========================================================================
9//===========================================================================
10#pragma once
11
12GX_CORE_NAMESPACE_BEGIN()
13
14//===========================================================================
16//===========================================================================
18{
19 //-------------------------------------------------------------
21 //-------------------------------------------------------------
23public:
24 // RTTI定義
25 GX_RTTI_RESOURCE_NAME_ICON(GxResMaterialFunction, GxResBase, "マテリアル関数リソース", GxRtti::ICON_TYPE::MATERIAL)
26 // GxClassBaseReference継承クラス用禁止宣言
28
29
30 //-----------------------------------------------------------
32 //-----------------------------------------------------------
34public:
37
39 //-----------------------------------------------------------
41 //-----------------------------------------------------------
43protected:
45 b32 load( GxStream& in, u32 dataSize );
46#if GX_DEVELOP
48 b32 save( GxStream& out );
49#endif //GX_DEVELOP
50
51public:
52#if GX_EDITOR
54 void getToolRtti( GxArray& arrayTool ) const override;
55#endif // GX_EDITOR
56
58};
59
60#if GX_DEVELOP
61//===========================================================================
63//===========================================================================
64class GxResMaterialFunctionXml : public GxResMaterialFunction
65{
66 //-------------------------------------------------------------
68 //-------------------------------------------------------------
70public:
71 // RTTI定義
72 GX_RTTI_RESOURCE(GxResMaterialFunctionXml, GxResMaterialFunction)
73 // GxClassBaseReference継承クラス用禁止宣言
74 GX_PROHIBIT_CLASS_BASE_REFERENCE(GxResMaterialFunctionXml)
75
76
77 //-----------------------------------------------------------
79 //-----------------------------------------------------------
81public:
83 GxResMaterialFunctionXml( void ) {}
84
86 //-----------------------------------------------------------
88 //-----------------------------------------------------------
90protected:
92 b32 load(GxStream& stream, u32 dataSize);
94 b32 save(GxStream& stream);
95
97 //-----------------------------------------------------------
99 //-----------------------------------------------------------
101public:
103 GX_FORCE_INLINE GxGuiFormShaderGraph::GxGraph* getGraph(void) { return &_graph; }
104
106 //-----------------------------------------------------------
108 //-----------------------------------------------------------
110private:
111 GxGuiFormShaderGraph::GxGraph _graph;
112
114};
115#endif // GX_DEVELOP
116
117GX_CORE_NAMESPACE_END()
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
#define GX_RTTI_RESOURCE(__THIS__, __BASE__)
リソースクラス型情報宣言
Definition GxRttiResource.h:102
配列クラス
Definition GxArray.h:18
リソース基底クラス
Definition GxResBase.h:23
マテリアル関数リソース
Definition GxResMaterialFunction.h:18
b32 load(GxStream &in, u32 dataSize)
リソースのロード
Definition GxResMaterialFunction.cpp:36
@ MATERIAL
マテリアル
ストリーム基礎クラス
Definition GxStream.h:20
32bitブーリアン
Definition GxDefine.h:173