ScummVM API documentation
gfxModule.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 CRUISE_GFXMODULE_H
23#define CRUISE_GFXMODULE_H
24
25namespace Cruise {
26
28 int useTandy;
29 int useEGA;
30 int useVGA;
31
32 uint8 *pPage00;
33 uint8 *pPage10;
34};
35
36struct palEntry {
37 uint8 R;
38 uint8 G;
39 uint8 B;
40 uint8 A;
41};
42
43extern gfxModuleDataStruct gfxModuleData;
44
45void gfxModuleData_gfxClearFrameBuffer(uint8 *ptr);
46void gfxModuleData_setDirtyColors(int min, int max);
47void gfxModuleData_setPalColor(int idx, int r, int g, int b);
48void gfxModuleData_field_90();
49void gfxModuleData_gfxWaitVSync();
50void gfxModuleData_flip();
51void gfxModuleData_updatePalette();
52void gfxModuleData_updateScreen();
53
54void gfxCopyRect(const uint8 *sourceBuffer, int width, int height, byte *dest, int x, int y, int color);
55void gfxModuleData_gfxCopyScreen(const uint8 *sourcePtr, uint8 *destPtr);
56void convertGfxFromMode4(const uint8 *sourcePtr, int width, int height, uint8 *destPtr);
57void convertGfxFromMode5(const uint8 *sourcePtr, int width, int height, uint8 *destPtr);
58void gfxModuleData_Init();
59void gfxModuleData_flipScreen();
60//void gfxModuleData_setPal(uint8 * ptr);
61void gfxModuleData_convertOldPalColor(uint16 oldColor, uint8 *pOutput);
62void gfxModuleData_setPalEntries(const byte *ptr, int start, int num);
63void gfxModuleData_setPal256(const byte *ptr);
64void gfxModuleData_addDirtyRect(const Common::Rect &r);
65void flip();
66void drawSolidBox(int32 x1, int32 y1, int32 x2, int32 y2, uint8 color);
67void resetBitmap(uint8 *dataPtr, int32 dataSize);
68
69void switchBackground(const byte *newBg);
70
71} // End of namespace Cruise
72
73#endif
Definition: actor.h:25
Definition: rect.h:536
Definition: gfxModule.h:27
Definition: gfxModule.h:36