OROCHI
Loading...
Searching...
No Matches
GxUnitHudImageAnimation.h
Go to the documentation of this file.
1
//===========================================================================
9
//===========================================================================
10
#pragma once
11
12
GX_HUD_NAMESPACE_BEGIN()
13
14
//===========================================================================
16
//===========================================================================
17
class
GxUnitHudImageAnimation
: public
GxUnitHudImage
18
{
19
//-------------------------------------------------------------
21
//-------------------------------------------------------------
23
public
:
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継承クラス用禁止宣言
40
GX_PROHIBIT_CLASS_BASE_REFERENCE
(
GxUnitHudImageAnimation
)
41
43
//-------------------------------------------------------------
45
//-------------------------------------------------------------
47
public:
49
GxUnitHudImageAnimation
(
void
);
51
void
cleanup(
void
) override;
52
54
//-------------------------------------------------------------
56
//-------------------------------------------------------------
58
public:
60
void
play(
b32
isLoop = true);
62
void
stop(
void
);
64
void
pause(
void
);
65
protected:
67
void
asyncUpdate(
void
) override;
68
70
//-------------------------------------------------------------
72
//-------------------------------------------------------------
74
public:
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
//-------------------------------------------------------------
87
protected
:
88
GxArrayClassBase
_resTextures
;
89
GxString
_delimiter
;
90
PLAY_STATE
_playState
;
91
b32
_loopFlag
;
92
f32
_time
;
93
f32
_endTime
;
94
u32
_playIndex
;
95
97
};
98
99
GX_HUD_NAMESPACE_END()
GX_PROHIBIT_CLASS_BASE_REFERENCE
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition
GxBase.h:244
OUTPUT_TYPE::MAX
@ MAX
定義数
GxArrayClassBase
配列クラス
Definition
GxArrayClassBase.h:18
GxResTexture
テクスチャリソース
Definition
GxResTexture.h:23
GxUnitHudImageAnimation
HUD画像アニメーションユニットクラス
Definition
GxUnitHudImageAnimation.h:18
GxUnitHudImageAnimation::_time
f32 _time
再生時間
Definition
GxUnitHudImageAnimation.h:92
GxUnitHudImageAnimation::_playIndex
u32 _playIndex
再生インデックス
Definition
GxUnitHudImageAnimation.h:94
GxUnitHudImageAnimation::_endTime
f32 _endTime
再生終了時間
Definition
GxUnitHudImageAnimation.h:93
GxUnitHudImageAnimation::setLoop
GX_FORCE_INLINE void setLoop(b32 enable)
ループ設定
Definition
GxUnitHudImageAnimation.h:80
GxUnitHudImageAnimation::_resTextures
GxArrayClassBase _resTextures
テクスチャリソースリスト
Definition
GxUnitHudImageAnimation.h:88
GxUnitHudImageAnimation::_delimiter
GxString _delimiter
区切り文字
Definition
GxUnitHudImageAnimation.h:89
GxUnitHudImageAnimation::PLAY_STATE
PLAY_STATE
再生状態
Definition
GxUnitHudImageAnimation.h:26
GxUnitHudImageAnimation::_playState
PLAY_STATE _playState
再生状態
Definition
GxUnitHudImageAnimation.h:90
GxUnitHudImageAnimation::_loopFlag
b32 _loopFlag
ループフラグ
Definition
GxUnitHudImageAnimation.h:91
GxUnitHudImage
HUD画像ユニットクラス
Definition
GxUnitHudImage.h:18
GxString
文字列型クラス
Definition
GxString.h:18
b32
32bitブーリアン
Definition
GxDefine.h:173
middleware
GxHud
src
GxUnitHudImageAnimation.h
Generated by
1.12.0