OROCHI
 
Loading...
Searching...
No Matches
GxResMotion.h
Go to the documentation of this file.
1//===========================================================================
9//===========================================================================
10#pragma once
11
12GX_MOTION_NAMESPACE_BEGIN()
13
14//===========================================================================
16//===========================================================================
17class GxResMotion : public GxResBase
18{
19 //-----------------------------------------------------------
21 //-----------------------------------------------------------
23public:
24 // RTTI定義
25 GX_RTTI_RESOURCE_ICON(GxResMotion, GxResBase, GxRtti::ICON_TYPE::MOTION)
26 // ClassBaseReference継承クラス用禁止宣言
28
29
30 //-------------------------------------------------------------
32 //-------------------------------------------------------------
34
38 void cleanup(void) override;
39
41 //-------------------------------------------------------------
43 //-------------------------------------------------------------
45
47 b32 load(GxStream& stream, u32 dataSize);
48#if GX_DEVELOP
50 b32 save(GxStream& stream);
51#endif //GX_DEVELOP
52
54 //-------------------------------------------------------------
56 //-------------------------------------------------------------
58
60 constexpr void* getResource(void) const { return _pReadBuffer; }
62 constexpr u32 getResourceSize(void) const { return _fileSize; }
63
65 //-------------------------------------------------------------
67 //-------------------------------------------------------------
69protected:
72
74};
75
76#if GX_DEVELOP
77//===========================================================================
79//===========================================================================
80class GxResMotionDae : public GxResMotion
81{
82 //-----------------------------------------------------------
84 //-----------------------------------------------------------
86public:
87 // RTTI定義
88 GX_RTTI_RESOURCE(GxResMotionDae, GxResMotion)
89 // ClassBaseReference継承クラス用禁止宣言
91
92
93 //-----------------------------------------------------------
95 //-----------------------------------------------------------
97
99 GxResMotionDae(void){}
100
102 //-----------------------------------------------------------
104 //-----------------------------------------------------------
106
108 b32 finalize(void);
109
111};
112
113#if defined(_WINDOWS)
114//===========================================================================
116//===========================================================================
117class GxResMotionFbx : public GxResMotion
118{
119 //-----------------------------------------------------------
121 //-----------------------------------------------------------
123public:
124 // RTTI定義
125 GX_RTTI_RESOURCE(GxResMotionFbx, GxResMotion)
126 // ClassBaseReference継承クラス用禁止宣言
128
129
130 //-----------------------------------------------------------
132 //-----------------------------------------------------------
134
136 GxResMotionFbx(void){}
137
139 //-----------------------------------------------------------
141 //-----------------------------------------------------------
143
145 b32 finalize(void);
146
148};
149#endif //_WINDOWS
150#endif //GX_DEVELOP
151
152GX_MOTION_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 GxResBase.h:23
モーションリソース
Definition GxResMotion.h:18
constexpr void * getResource(void) const
リソース情報を取得
Definition GxResMotion.h:60
u32 _fileSize
ファイルサイズ
Definition GxResMotion.h:71
constexpr u32 getResourceSize(void) const
リソースサイズを取得
Definition GxResMotion.h:62
void * _pReadBuffer
読み込みバッファ
Definition GxResMotion.h:70
ストリーム基礎クラス
Definition GxStream.h:20
32bitブーリアン
Definition GxDefine.h:173