comparison window/render.cc @ 56:c7bcc0ec2267

* replaced Grp and Text classes by the TextImpl and GrpImpl ones * splitted scn2k.h into smaller header files * moved some definitions from scn2k_*.cc to the header files * moved opcode implementation to scn2k_*impl.cc
author thib
date Thu, 30 Apr 2009 19:05:09 +0000
parents 15a18fbe6f21
children e16e13d8cd68
comparison
equal deleted inserted replaced
55:f1a27ee7e03c 56:c7bcc0ec2267
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28 #include "font/font.h" 28 #include "font/font.h"
29 #include "font/text.h" 29 #include "font/text.h"
30 #include "SDL.h"
31 #include "render.h"
30 #include "rect.h" 32 #include "rect.h"
31 #include "SDL.h"
32 #include "surface.h" 33 #include "surface.h"
33 #include <stdio.h> 34 #include <stdio.h>
34
35 Rect DSurfaceRenderText(TextGlyphStream::iterator start, TextGlyphStream::iterator end, const Rect& srcrect,
36 Surface* dst, const Rect& dstrect); // 文字描画
37 void DSurfaceFill(Surface* src, const Rect& rect, int r, int g, int b, int a); // クリア
38 void DSurfaceFillA(Surface* src, const Rect& rect, int r, int g, int b, int a); // テキストウィンドウ背景の設定
39 void DSurfaceMove(Surface* src_o, const Rect& srcrect, Surface* dst_o, const Rect& dstrect); // コピー
40 void DSurfaceBlitAlpha(Surface* src_o, const Rect& srcrect_o, Surface* dst_o, const Rect& dstrect_o, const unsigned char* alpha, const Rect& alpharect);
41 void DSurfaceBlitSaturate(Surface* src_o, const Rect& srcrect, Surface* dst_o, const Rect& dstrect, unsigned char alpha);
42 void DSurfaceBlitMultiply(Surface* src_o, const Rect& srcrect_o, Surface* dst_o, const Rect& dstrect_o);
43 35
44 #ifndef ALPHA_MAX 36 #ifndef ALPHA_MAX
45 #define ALPHA_MAX 255 37 #define ALPHA_MAX 255
46 #endif 38 #endif
47 39