ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
wgt2_allg.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 //
24 // Few graphic utility functions, remains of a bigger deprecated api.
25 //
26 //=============================================================================
27 
28 #ifndef AGS_SHARED_UTIL_WGT2_ALIG_H
29 #define AGS_SHARED_UTIL_WGT2_ALIG_H
30 
31 #include "ags/lib/allegro.h" // RGB
32 
33 namespace AGS3 {
34 
35 namespace AGS {
36 namespace Shared {
37 class Bitmap;
38 }
39 }
40 using namespace AGS; // FIXME later
41 
42 //=============================================================================
43 
44 // [IKM] 2012-09-13: this function is now defined in engine and editor separately
45 extern void __my_setcolor(int *ctset, int newcol, int wantColDep);
46 
47 extern void wsetrgb(int coll, int r, int g, int b, RGB *pall);
48 extern void wcolrotate(unsigned char start, unsigned char finish, int dir, RGB *pall);
49 
50 extern Shared::Bitmap *wnewblock(Shared::Bitmap *src, int x1, int y1, int x2, int y2);
51 
52 extern void wputblock(Shared::Bitmap *ds, int xx, int yy, Shared::Bitmap *bll, int xray);
53 // CHECKME: temporary solution for plugin system
54 extern void wputblock_raw(Shared::Bitmap *ds, int xx, int yy, BITMAP *bll, int xray);
55 extern const int col_lookups[32];
56 
57 // TODO: these are used only in the Editor's agsnative.cpp
58 extern int __wremap_keep_transparent;
59 extern void wremap(RGB *pal1, Shared::Bitmap *picc, RGB *pal2);
60 extern void wremapall(RGB *pal1, Shared::Bitmap *picc, RGB *pal2);
61 
62 } // namespace AGS3
63 
64 #endif
Definition: achievements_tables.h:27
Definition: ags.h:40