ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
aastr.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 /*
23  * aastr.h --- anti-aliased stretching and rotation for Allegro
24  *
25  * This file is gift-ware. This file is given to you freely
26  * as a gift. You may use, modify, redistribute, and generally hack
27  * it about in any way you like, and you do not have to give anyone
28  * anything in return.
29  *
30  * I do not accept any responsibility for any effects, adverse or
31  * otherwise, that this code may have on just about anything that
32  * you can think of. Use it at your own risk.
33  *
34  * Copyright (C) 1998, 1999 Michael Bukin
35  */
36 
37 #ifndef AGS_LIB_AASTR_AASTR_H
38 #define AGS_LIB_AASTR_AASTR_H
39 
40 #include "ags/lib/allegro.h"
41 
42 namespace AGS3 {
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
48 /* Stretching. */
49 void aa_stretch_blit(BITMAP *src, BITMAP *dst,
50  int sx, int sy, int sw, int sh,
51  int dx, int dy, int dw, int dh);
52 void aa_stretch_sprite(BITMAP *dst, BITMAP *src,
53  int dx, int dy, int dw, int dh);
54 
55 /* Rotation. */
56 void aa_rotate_scaled_bitmap(BITMAP *src, BITMAP *dst,
57  int x, int y, fixed angle,
58  fixed scalex, fixed scaley);
59 void aa_rotate_scaled_sprite(BITMAP *dst, BITMAP *src,
60  int x, int y, fixed angle,
61  fixed scalex, fixed scaley);
62 void aa_rotate_bitmap(BITMAP *src, BITMAP *dst,
63  int x, int y, fixed angle);
64 void aa_rotate_sprite(BITMAP *dst, BITMAP *src,
65  int x, int y, fixed angle);
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 } // namespace AGS3
72 
73 #endif
Definition: ags.h:40