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