2007-05-30 21:56:52 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
2007-04-27 12:58:35 +00:00
|
|
|
*
|
2007-05-30 21:56:52 +00:00
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
2007-04-27 12:58:35 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
* $URL$
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2007-04-27 22:33:45 +00:00
|
|
|
#ifndef CRUISE_GFXMODULE_H
|
|
|
|
#define CRUISE_GFXMODULE_H
|
2007-04-27 12:58:35 +00:00
|
|
|
|
|
|
|
namespace Cruise {
|
|
|
|
|
2007-04-27 22:33:45 +00:00
|
|
|
struct gfxModuleDataStruct {
|
2007-04-27 12:58:35 +00:00
|
|
|
int useTandy;
|
|
|
|
int useEGA;
|
|
|
|
int useVGA;
|
|
|
|
|
2007-04-27 22:33:45 +00:00
|
|
|
uint8 *pPage00;
|
|
|
|
uint8 *pPage10;
|
2007-04-27 12:58:35 +00:00
|
|
|
};
|
|
|
|
|
2007-04-27 22:33:45 +00:00
|
|
|
struct palEntry {
|
2007-04-27 12:58:35 +00:00
|
|
|
uint8 R;
|
|
|
|
uint8 G;
|
|
|
|
uint8 B;
|
|
|
|
uint8 A;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern gfxModuleDataStruct gfxModuleData;
|
|
|
|
|
2007-04-27 22:33:45 +00:00
|
|
|
void gfxModuleData_gfxClearFrameBuffer(uint8 * ptr);
|
2007-04-29 01:07:19 +00:00
|
|
|
void gfxModuleData_setDirtyColors(int min, int max);
|
|
|
|
void gfxModuleData_setPalColor(int idx, int r, int g, int b);
|
2007-04-27 12:58:35 +00:00
|
|
|
void gfxModuleData_field_90(void);
|
|
|
|
void gfxModuleData_gfxWaitVSync(void);
|
|
|
|
void gfxModuleData_flip(void);
|
2009-03-01 02:19:06 +00:00
|
|
|
void gfxCopyRect(const byte *sourceBuffer, int width, int height, byte *dest, int x, int y, int colour);
|
2007-04-27 22:33:45 +00:00
|
|
|
void gfxModuleData_gfxCopyScreen(char *sourcePtr, char *destPtr);
|
2007-12-24 01:05:36 +00:00
|
|
|
void convertGfxFromMode4(uint8 *sourcePtr, int width, int height, uint8 *destPtr);
|
|
|
|
void convertGfxFromMode5(uint8 *sourcePtr, int width, int height, uint8 *destPtr);
|
2007-04-27 12:58:35 +00:00
|
|
|
void gfxModuleData_flipScreen(void);
|
2007-12-24 01:05:36 +00:00
|
|
|
//void gfxModuleData_setPal(uint8 * ptr);
|
|
|
|
void gfxModuleData_convertOldPalColor(uint16 oldColor, uint8* pOutput);
|
|
|
|
void gfxModuleData_setPal256(uint8 * ptr);
|
2007-04-27 12:58:35 +00:00
|
|
|
void flip(void);
|
2009-02-19 09:58:33 +00:00
|
|
|
void drawSolidBox(int32 x1, int32 y1, int32 x2, int32 y2, uint8 colour);
|
2009-03-01 02:19:06 +00:00
|
|
|
void resetBitmap(uint8 *dataPtr, int32 dataSize);
|
2007-04-27 12:58:35 +00:00
|
|
|
|
|
|
|
} // End of namespace Cruise
|
|
|
|
|
|
|
|
#endif
|