SDXFrameWork  0.09
SDXFrameWork
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Movie.h
1 #pragma once//☀SDL
2 #include <Multimedia/SDX.h>
3 #include <Multimedia/Image.h>
4 
5 namespace SDX
6 {
9 class Movie
10 {
11 private:
12  std::string fileName;
13 public:
14 
16  Movie(const char *ファイル名)
17  {
18  this->fileName = ファイル名;
19  }
20 
23  bool Load(const char *ファイル名)
24  {
25  this->fileName = ファイル名;
26  return true;
27  }
28 
32  void Play(int 拡大率 , bool 途中キャンセルフラグ)
33  {
34  }
35 };
36 
40 {
41 private:
42  int handle;
43  bool isTrans;
44  MovieImage(const MovieImage &movie);
45  MovieImage& operator =(const MovieImage &movie);
46  int width;
47  int height;
48 public:
49  MovieImage():
50  isTrans(false)
51  {}
52 
54  MovieImage(const char *ファイル名)
55  {
56  Load(ファイル名);
57  }
58 
61  bool Load(const char *ファイル名)
62  {
63  return false;
64  }
65 
68  bool Release()
69  {
70  return false;
71  }
72 
74  int GetHandle()
75  {
76  return this->handle;
77  }
78 
80  bool Play()
81  {
82  return false;
83  }
84 
86  bool Pause()
87  {
88  return false;
89  }
90 
92  int Seek(int 再生位置)
93  {
94  return false;
95  }
96 
98  int Tell()
99  {
100  return false;
101  }
102 
104  bool Check()
105  {
106  return false;
107  }
108 
110  bool Draw(const Point &座標 , bool 反転フラグ = false)
111  {
112  return false;
113  }
114 
116  bool DrawExtend(const Rect &領域)
117  {
118  return false;
119  }
120 
122  bool DrawRotate(const Point &座標, double 拡大率, double 角度, bool 反転フラグ = false)
123  {
124  return false;
125  }
126 
128  bool DrawRotateAxis(const Point &座標, int X軸, int Y軸, double 拡大率, double 角度, bool 反転フラグ = false)
129  {
130  return false;
131  }
132 
134  bool DrawModify(const Point &頂点A, const Point &頂点B, const Point &頂点C, const Point &頂点D) const
135  {
136  return false;
137  }
138 
140  bool DrawPart(const Point &描画座標,const Rect &元領域 , bool 反転フラグ)
141  {
142  return false;
143  }
144 
146  int GetWidth()
147  {
148  return width;
149  }
150 
152  int GetHeight()
153  {
154  return height;
155  }
156 
157 };
158 }
矩形を表す図形クラス.
Definition: Shape.h:536
int GetHeight()
高さを取得.
Definition: Movie.h:152
bool Draw(const Point &座標, bool 反転フラグ=false)
指定座標に描画.
Definition: Movie.h:110
Imageクラスの動画版[未実装].
Definition: Movie.h:39
bool DrawExtend(const Rect &領域)
指定矩形内に描画.
Definition: Movie.h:116
点を表す図形クラス.
Definition: Shape.h:129
bool DrawModify(const Point &頂点A, const Point &頂点B, const Point &頂点C, const Point &頂点D) const
四角形に変形描画.
Definition: Movie.h:134
void Play(int 拡大率, bool 途中キャンセルフラグ)
動画を再生.
Definition: Movie.h:32
bool Check()
動画が再生中か取得.
Definition: Movie.h:104
bool DrawRotate(const Point &座標, double 拡大率, double 角度, bool 反転フラグ=false)
角度、拡大率を指定して描画.
Definition: Movie.h:122
bool Load(const char *ファイル名)
ファイルの読込.
Definition: Movie.h:61
int GetWidth()
幅を取得.
Definition: Movie.h:146
bool Release()
ファイルの開放.
Definition: Movie.h:68
int Seek(int 再生位置)
動画の再生位置を設定.
Definition: Movie.h:92
int Tell()
動画の再生位置を取得.
Definition: Movie.h:98
Movie(const char *ファイル名)
動画ファイルの登録.
Definition: Movie.h:16
MovieImage(const char *ファイル名)
ファイルの読込.
Definition: Movie.h:54
int GetHandle()
ハンドルの取得.
Definition: Movie.h:74
bool Load(const char *ファイル名)
動画ファイルの登録.
Definition: Movie.h:23
bool Pause()
動画の停止.
Definition: Movie.h:86
bool DrawRotateAxis(const Point &座標, int X軸, int Y軸, double 拡大率, double 角度, bool 反転フラグ=false)
角度、拡大率を指定して描画.
Definition: Movie.h:128
bool DrawPart(const Point &描画座標, const Rect &元領域, bool 反転フラグ)
一部を指定して描画.
Definition: Movie.h:140
bool Play()
動画の再生.
Definition: Movie.h:80
動画を表すクラス[未実装].
Definition: Movie.h:9