OROCHI
 
Loading...
Searching...
No Matches
GxUnitMovieCharacter.h
Go to the documentation of this file.
1//===========================================================================
12//===========================================================================
13#pragma once
14
15GX_MOVIE_NAMESPACE_BEGIN()
16
17class GxMoviePlayer;
18
19//===========================================================================
21//===========================================================================
23{
24 //-----------------------------------------------------------
26 //-----------------------------------------------------------
28public:
29 GX_RTTI_CLASS_NAME(GxUnitMovieCharacter, GxUnitModel, "ムービーユニット")
30 // ClassBaseReference継承クラス用禁止宣言
32
33
34 //-----------------------------------------------------------
36 //-----------------------------------------------------------
38public:
42 void cleanup(void) override;
43
45 //-----------------------------------------------------------
47 //-----------------------------------------------------------
49protected:
51 void asyncUpdate(void) override;
52
53public:
55 //note: 関数をコールする前に、モデルリソース・ムービーリソースパスの設定を行う必要があります
56 void play(const GxMoviePlayerInitializeInfo& information);
57
58protected:
60 void initializeMovie(const GxMoviePlayerInitializeInfo& information);
62 void deleteMovie(void);
63
64#if GX_DEVELOP
66 GX_FORCE_INLINE void pauseMovie(void) { getMoviePlayer()->pause(true); }
68 GX_FORCE_INLINE void pauseCancelMovie(void) { getMoviePlayer()->pause(false); }
69#endif // GX_DEVELOP
70
72 //-----------------------------------------------------------
74 //-----------------------------------------------------------
76public:
78 constexpr GxMoviePlayer* getMoviePlayer( void ) const { GX_ASSERT(_pMovie, "_pMovie is nullptr"); return _pMovie; }
79
81 constexpr void setTargetMaterialIndex(u32 index) { _targetMaterialIndex = index; }
82
84 //-------------------------------------------------------------
86 //-------------------------------------------------------------
88private:
89 GxMoviePlayer* _pMovie;
90 u32 _targetMaterialIndex;
91
93};
94
95GX_MOVIE_NAMESPACE_END()
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
ムービークラス
Definition GxMoviePlayer.h:24
モデルクラス
Definition GxUnitModel.h:19
ムービー用ユニット
Definition GxUnitMovieCharacter.h:23
constexpr void setTargetMaterialIndex(u32 index)
カラーテクスチャを上書きするマテリアルのインデックスを設定
Definition GxUnitMovieCharacter.h:81
constexpr GxMoviePlayer * getMoviePlayer(void) const
ムービープレイヤーの取得
Definition GxUnitMovieCharacter.h:78
初期化情報構造体
Definition GxMoviePlayerBase.h:18