Mercurial > otakunoraifu
comparison scn2k/scn2k_grp.h @ 71:1fd20d231376
Fix objScale with 2D zoom; implement objWidth and objHeight.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 01 Apr 2011 23:49:12 +0200 |
parents | e16e13d8cd68 |
children | f8751d74918b |
comparison
equal
deleted
inserted
replaced
70:281dcd7217df | 71:1fd20d231376 |
---|---|
74 int print_size, print_r, print_b, print_g; | 74 int print_size, print_r, print_b, print_g; |
75 | 75 |
76 int dig_number, dig_digit; | 76 int dig_number, dig_digit; |
77 | 77 |
78 // zoom / rotate 関係 | 78 // zoom / rotate 関係 |
79 int zoom; // 256 で 1 倍 | 79 int zoomx, zoomy; // 256 で 1 倍 |
80 int rotate; // 0-360度 | 80 int rotate; // 0-360度 |
81 | 81 |
82 vector<Rect> src_pos; | 82 vector<Rect> src_pos; |
83 enum GrpType { FILLRECT = 1, FILE = 2, GAN = 3, MOJI = 4, DIGIT = 5} gtype; | 83 enum GrpType { FILLRECT = 1, FILE = 2, GAN = 3, MOJI = 4, DIGIT = 5} gtype; |
84 enum Attribute { NONE=0, WIPEON=1, BLIT_ADD=2, HIDDEN=4, | 84 enum Attribute { NONE=0, WIPEON=1, BLIT_ADD=2, HIDDEN=4, |
97 int PosX(void); | 97 int PosX(void); |
98 int PosY(void); | 98 int PosY(void); |
99 void SetAlpha(void); | 99 void SetAlpha(void); |
100 void SetAlpha(int alpha); | 100 void SetAlpha(int alpha); |
101 void SetSurfaceNum(int num = -1); | 101 void SetSurfaceNum(int num = -1); |
102 void SetZoomRotate(int zoom=-1, int rotate=-1); | 102 void SetZoomRotate(int zoomx=-1, int zoomy=-1, int rotate=-1); |
103 void SetClipArea(int x, int y, int width, int height); | 103 void SetClipArea(int x, int y, int width, int height); |
104 void GetSrcGeom(int& width, int& height); | 104 void GetSrcGeom(int& width, int& height); |
105 void SetUpdate(void); | 105 void SetUpdate(void); |
106 void UpdateMoji(void); | 106 void UpdateMoji(void); |
107 void UpdateDigit(void); | 107 void UpdateDigit(void); |
198 void impl_objDispArea(Cmd &cmd); | 198 void impl_objDispArea(Cmd &cmd); |
199 void impl_objSetDigits(Cmd &cmd); | 199 void impl_objSetDigits(Cmd &cmd); |
200 void impl_objNumOpts(Cmd &cmd); | 200 void impl_objNumOpts(Cmd &cmd); |
201 void impl_objPattNo(Cmd &cmd); | 201 void impl_objPattNo(Cmd &cmd); |
202 void impl_objScale(Cmd &cmd); | 202 void impl_objScale(Cmd &cmd); |
203 void impl_objWidth(Cmd &cmd); | |
204 void impl_objHeight(Cmd &cmd); | |
203 void impl_objRotate(Cmd &cmd); | 205 void impl_objRotate(Cmd &cmd); |
204 void impl_objPosDims(Cmd &cmd); | 206 void impl_objPosDims(Cmd &cmd); |
205 void impl_refresh(Cmd &cmd); | 207 void impl_refresh(Cmd &cmd); |
206 void impl_bgmLoop(Cmd &cmd); | 208 void impl_bgmLoop(Cmd &cmd); |
207 void impl_bgmStop(Cmd &cmd); | 209 void impl_bgmStop(Cmd &cmd); |