2 #include<Multimedia/SDX.h>
3 #include<Multimedia/Image.h>
18 this->fileName = ファイル名;
22 bool Load(
const char *ファイル名)
26 this->fileName = ファイル名;
31 void Play(
int 拡大率 ,
bool 途中キャンセルフラグ)
38 PlayMovie( fileName.c_str() , 拡大率 , DX_MOVIEPLAYTYPE_BCANCEL ) ;
40 PlayMovie( fileName.c_str() , 拡大率 , DX_MOVIEPLAYTYPE_NORMAL ) ;
54 MovieImage(
const MovieImage &movie);
55 MovieImage& operator =(
const MovieImage &movie);
70 bool Load(
const char *ファイル名)
74 if(this->handle != NULL_HANDLE) DxLib::DeleteGraph(this->handle);
75 this->handle = DxLib::LoadGraph(ファイル名);
76 return (this->handle != -1);
87 return !DxLib::DeleteGraph(this->handle);
103 return !DxLib::PlayMovieToGraph( this->handle );
113 return !DxLib::PauseMovieToGraph( this->handle ) ;
123 return DxLib::SeekMovieToGraph( this->handle , 再生位置 ) ;
133 return DxLib::TellMovieToGraph( this->handle ) ;
143 return (DxLib::GetMovieStateToGraph( this->handle ) == 1);
150 bool Draw(
int X座標,
int Y座標 ,
bool 反転フラグ =
false)
153 if (反転フラグ)
return !DxLib::DrawTurnGraph(X座標, Y座標, this->handle, this->isTrans);
154 else return !DxLib::DrawGraph(X座標, Y座標, this->handle, this->isTrans);
164 return !DxLib::DrawExtendGraph(X座標A, Y座標A, X座標B, Y座標B, this->handle, this->isTrans);
171 bool DrawRotate(
int X座標,
int Y座標,
double 拡大率,
double 角度,
bool 反転フラグ =
false)
174 return !DxLib::DrawRotaGraph(X座標, Y座標, 拡大率, 角度, this->handle, this->isTrans, 反転フラグ);
181 bool DrawRotateAxis(
int X座標,
int Y座標,
int X軸,
int Y軸,
double 拡大率,
double 角度,
bool 反転フラグ =
false)
184 return !DxLib::DrawRotaGraph2(X座標, Y座標, X軸, Y軸, 拡大率, 角度, this->
GetHandle(), this->isTrans, 反転フラグ);
191 bool DrawModify(
int X頂点A,
int Y頂点A,
int X頂点B,
int Y頂点B,
int X頂点C,
int Y頂点C,
int X頂点D,
int Y頂点D)
const
194 return !DxLib::DrawModiGraph( X頂点A, Y頂点A, X頂点B, Y頂点B, X頂点C, Y頂点C, X頂点D, Y頂点D, this->handle, this->isTrans);
201 bool DrawPart(
int destX,
int destY,
int srcX,
int srcY,
int width,
int height,
bool isTurn)
204 return !DxLib::DrawRectGraph( destX , destY , srcX , srcY , width , height , this->handle , this->isTrans , isTurn );
bool DrawExtend(int X座標A, int Y座標A, int X座標B, int Y座標B)
指定矩形内に描画.
Definition: Movie.h:161
bool DrawRotate(int X座標, int Y座標, double 拡大率, double 角度, bool 反転フラグ=false)
角度、拡大率を指定して描画.
Definition: Movie.h:171
int GetHeight()
高さを取得.
Definition: Movie.h:217
bool DrawRotateAxis(int X座標, int Y座標, int X軸, int Y軸, double 拡大率, double 角度, bool 反転フラグ=false)
角度、拡大率を指定して描画.
Definition: Movie.h:181
void Play(int 拡大率, bool 途中キャンセルフラグ)
動画を再生.
Definition: Movie.h:33
bool Check()
動画が再生中か取得.
Definition: Movie.h:140
bool DrawPart(int destX, int destY, int srcX, int srcY, int width, int height, bool isTurn)
一部を指定して描画.
Definition: Movie.h:201
bool Draw(int X座標, int Y座標, bool 反転フラグ=false)
指定座標に描画.
Definition: Movie.h:150
bool Load(const char *ファイル名)
ファイルの読込.
Definition: Movie.h:71
int GetWidth()
幅を取得.
Definition: Movie.h:211
bool Release()
ファイルの開放.
Definition: Movie.h:84
int Seek(int 再生位置)
動画の再生位置を設定.
Definition: Movie.h:120
int Tell()
動画の再生位置を取得.
Definition: Movie.h:130
Movie(const char *ファイル名)
動画ファイルの登録.
Definition: Movie.h:16
MovieImage(const char *ファイル名)
ファイルの読込.
Definition: Movie.h:64
int GetHandle()
ハンドルの取得.
Definition: Movie.h:94
bool Load(const char *ファイル名)
動画ファイルの登録.
Definition: Movie.h:24
bool Pause()
動画の停止.
Definition: Movie.h:110
bool Play()
動画の再生.
Definition: Movie.h:100
bool DrawModify(int X頂点A, int Y頂点A, int X頂点B, int Y頂点B, int X頂点C, int Y頂点C, int X頂点D, int Y頂点D) const
四角形に変形描画.
Definition: Movie.h:191