OROCHI
 
Loading...
Searching...
No Matches
GxUnitHudImageAnimation.h
Go to the documentation of this file.
1//===========================================================================
9//===========================================================================
10#pragma once
11
12GX_HUD_NAMESPACE_BEGIN()
13
14//===========================================================================
16//===========================================================================
18{
19 //-------------------------------------------------------------
21 //-------------------------------------------------------------
23public:
25 enum class PLAY_STATE
26 {
27 PLAY,
28 STOP,
29 PAUSE,
30 MAX,
31 };
32#if GX_DEVELOP
34 GX_ENUM_TABLE_MAX(PLAY_STATE)
35#endif //GX_DEVELOP
36
37 // RTTI定義
38 GX_RTTI_CLASS_NAME(GxUnitHudImageAnimation, GxUnitHudImage, "HUD画像アニメーション")
39 // ClassBaseReference継承クラス用禁止宣言
41
43 //-------------------------------------------------------------
45 //-------------------------------------------------------------
47public:
51 void cleanup(void) override;
52
54 //-------------------------------------------------------------
56 //-------------------------------------------------------------
58public:
60 void play(b32 isLoop = true);
62 void stop(void);
64 void pause(void);
65protected:
67 void asyncUpdate(void) override;
68
70 //-------------------------------------------------------------
72 //-------------------------------------------------------------
74public:
76 b32 setTextureResource(GxResTexture* pResTexture) override;
78 GX_FORCE_INLINE b32 isLoop(void) const { return _loopFlag; }
80 GX_FORCE_INLINE void setLoop(b32 enable) { _loopFlag = enable; }
81
83 //-------------------------------------------------------------
85 //-------------------------------------------------------------
87protected:
92 f32 _time;
95
97};
98
99GX_HUD_NAMESPACE_END()
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
@ MAX
定義数
配列クラス
Definition GxArrayClassBase.h:18
テクスチャリソース
Definition GxResTexture.h:23
HUD画像アニメーションユニットクラス
Definition GxUnitHudImageAnimation.h:18
f32 _time
再生時間
Definition GxUnitHudImageAnimation.h:92
u32 _playIndex
再生インデックス
Definition GxUnitHudImageAnimation.h:94
f32 _endTime
再生終了時間
Definition GxUnitHudImageAnimation.h:93
GX_FORCE_INLINE void setLoop(b32 enable)
ループ設定
Definition GxUnitHudImageAnimation.h:80
GxArrayClassBase _resTextures
テクスチャリソースリスト
Definition GxUnitHudImageAnimation.h:88
GxString _delimiter
区切り文字
Definition GxUnitHudImageAnimation.h:89
PLAY_STATE
再生状態
Definition GxUnitHudImageAnimation.h:26
PLAY_STATE _playState
再生状態
Definition GxUnitHudImageAnimation.h:90
b32 _loopFlag
ループフラグ
Definition GxUnitHudImageAnimation.h:91
HUD画像ユニットクラス
Definition GxUnitHudImage.h:18
文字列型クラス
Definition GxString.h:18
32bitブーリアン
Definition GxDefine.h:173