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
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (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, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  *
21  */
22 
23 #ifndef AGS_ENGINE_AC_GLOBAL_DRAWING_SURFACE_H
24 #define AGS_ENGINE_AC_GLOBAL_DRAWING_SURFACE_H
25 
26 namespace AGS3 {
27 
28 void RawSaveScreen();
29 // RawRestoreScreen: copy backup bitmap back to screen; we
30 // deliberately don't free the Shared::Bitmap *cos they can multiple restore
31 // and it gets freed on room exit anyway
32 void RawRestoreScreen();
33 // Restores the backup bitmap, but tints it to the specified level
34 void RawRestoreScreenTinted(int red, int green, int blue, int opacity);
35 void RawDrawFrameTransparent(int frame, int translev);
36 void RawClear(int clr);
37 void RawSetColor(int clr);
38 void RawSetColorRGB(int red, int grn, int blu);
39 void RawPrint(int xx, int yy, const char *text);
40 void RawPrintMessageWrapped(int xx, int yy, int wid, int font, int msgm);
41 void RawDrawImageCore(int xx, int yy, int slot, int alpha = 0xFF);
42 void RawDrawImage(int xx, int yy, int slot);
43 void RawDrawImageOffset(int xx, int yy, int slot);
44 void RawDrawImageTransparent(int xx, int yy, int slot, int opacity);
45 void RawDrawImageResized(int xx, int yy, int gotSlot, int width, int height);
46 void RawDrawLine(int fromx, int fromy, int tox, int toy);
47 void RawDrawCircle(int xx, int yy, int rad);
48 void RawDrawRectangle(int x1, int y1, int x2, int y2);
49 void RawDrawTriangle(int x1, int y1, int x2, int y2, int x3, int y3);
50 
51 } // namespace AGS3
52 
53 #endif
54