ScummVM API documentation
global_drawing_surface.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#ifndef AGS_ENGINE_AC_GLOBAL_DRAWING_SURFACE_H
23#define AGS_ENGINE_AC_GLOBAL_DRAWING_SURFACE_H
24
25namespace AGS3 {
26
27void RawSaveScreen();
28// RawRestoreScreen: copy backup bitmap back to screen; we
29// deliberately don't free the Shared::Bitmap *cos they can multiple restore
30// and it gets freed on room exit anyway
31void RawRestoreScreen();
32// Restores the backup bitmap, but tints it to the specified level
33void RawRestoreScreenTinted(int red, int green, int blue, int opacity);
34void RawDrawFrameTransparent(int frame, int translev);
35void RawClear(int clr);
36void RawSetColor(int clr);
37void RawSetColorRGB(int red, int grn, int blu);
38void RawPrint(int xx, int yy, const char *text);
39void RawPrintMessageWrapped(int xx, int yy, int wid, int font, int msgm);
40void RawDrawImageCore(int xx, int yy, int slot, int alpha = 0xFF);
41void RawDrawImage(int xx, int yy, int slot);
42void RawDrawImageOffset(int xx, int yy, int slot);
43void RawDrawImageTransparent(int xx, int yy, int slot, int opacity);
44void RawDrawImageResized(int xx, int yy, int gotSlot, int width, int height);
45void RawDrawLine(int fromx, int fromy, int tox, int toy);
46void RawDrawCircle(int xx, int yy, int rad);
47void RawDrawRectangle(int x1, int y1, int x2, int y2);
48void RawDrawTriangle(int x1, int y1, int x2, int y2, int x3, int y3);
49
50} // namespace AGS3
51
52#endif