OROCHI
 
Loading...
Searching...
No Matches
GxMovieDriver.h
Go to the documentation of this file.
1//===========================================================================
12//===========================================================================
13#pragma once
14
15#if defined(_XBOX_XS)
16
17GX_MOVIE_NAMESPACE_BEGIN()
18
19
20class GxMovieDriver
21{
22 //-------------------------------------------------------------
24 //-------------------------------------------------------------
26public:
28 enum class MOVIE_PLAYER
29 {
30 ERROR_ = 0,
31
32 IDLE,
33 BUFFERING,
34 PLAYING,
35 PAUSING,
36 PAUSED,
37 STOPPING,
38 STOPPED,
39 TERMINATING,
40 };
41
43 //-----------------------------------------------------------
45 //-----------------------------------------------------------
47public:
49 GxMovieDriver( void ){}
51 ~GxMovieDriver( void ){}
52
54 GX_FORCE_INLINE b32 initialize( const GxMoviePlayerInitializeInfo& /*info*/, GX_CSTR /*fullFilePath*/) { return false; }
56 b32 terminate( void ){ return true; }
57
59 //-----------------------------------------------------------
61 //-----------------------------------------------------------
63
65 constexpr void update( void ){}
66
68 GX_FORCE_INLINE b32 play(void) { return false; }
70 GX_FORCE_INLINE b32 stop(void) { return false; }
72 GX_FORCE_INLINE b32 pause(b32 /*on*/) { return false; }
74 GX_FORCE_INLINE b32 seek(u32 /*seekOffset*/) { return false; }
75
77 //-----------------------------------------------------------
79 //-----------------------------------------------------------
81
83 GX_FORCE_INLINE b32 setVolume( f32 /*volume*/ ){ return false; }
85 GX_FORCE_INLINE b32 getVolume( f32& volume ) const { volume = 0.0f; return false; }
87 GX_FORCE_INLINE b32 setPlaySpeed( f32 /*speed*/ ){ return false; }
89 GX_FORCE_INLINE b32 setScreenOffset( f32 /*x*/, f32 /*y*/ ){ return false; }
91 GX_FORCE_INLINE b32 setScreenSize( f32 /*width*/, f32 /*height*/ ){ return false; };
93 GX_FORCE_INLINE b32 setPriority(u8 /*priority*/, f32 /*z*/){ return false; };
95 GX_FORCE_INLINE b32 setProjectionMatrixId( u32 /*projectionId*/ ){ return false; };
97 GX_FORCE_INLINE b32 setRenderHud( b32 /*isRenderHud*/ ){ return false; };
99 constexpr GxResTexture* getTextureResource( void ) const { return nullptr; };
101 constexpr GxRenderTexture* getRenderTexture(void) const { return nullptr; }
102
104 GX_FORCE_INLINE b32 isLoop( void ) { return true; }
106 GX_FORCE_INLINE b32 setLoop(b32 /*isLoop*/) { return true; }
107
109 constexpr MOVIE_PLAYER getState( void ) const { return MOVIE_PLAYER::ERROR_; }
111 constexpr f32 getTime( void ) const { return 0.0f; }
113 constexpr f32 getTotalTime( void ) const { return 0.0f; }
115 GX_FORCE_INLINE void setScaleColor(const GxColor& /*color*/) {}
117 GX_FORCE_INLINE b32 isFunctionExit( s32 /*id*/ ) const { return true; }
119 GX_FORCE_INLINE b32 isFunctionSuccess( s32 /*id*/ ) const { return false;}
120
122 constexpr void setRenderViewPriority(RENDER_VIEW /*view*/) {}
124 constexpr void setRenderSubViewPriority(RENDER_SUB_VIEW /*subView*/) {}
126 constexpr void setRenderPriority(RENDER_PASS /*pass*/) {}
128 constexpr void setRenderSubPriority(f32 /*priority*/) {}
129
131 //note: 設定されている場合はマテリアルのカラーマップを上書きし、設定されていなければスプライト描画を行う
132 constexpr void setTargetMaterial( GxRenderMaterial* /*pTargetMaterial*/) {};
133};
134
135GX_MOVIE_NAMESPACE_END()
136#endif // _XBOX_XS
RENDER_VIEW
描画優先度(ビュー)
Definition GxRender.h:442
RENDER_PASS
描画優先度(パス)
Definition GxRender.h:515
RENDER_SUB_VIEW
描画優先度(サブビュー)
Definition GxRender.h:485
Windowsムービードライバクラス
Definition GxMovieDriverWindows.h:24
マテリアル構造体
Definition GxRenderMaterial.h:18
テクスチャクラス
Definition GxRenderTexture.h:19
テクスチャリソース
Definition GxResTexture.h:23
Definition GxColor.h:21
初期化情報構造体
Definition GxMoviePlayerBase.h:18
32bitブーリアン
Definition GxDefine.h:173