2007-01-15 12:09:25 -08:00
|
|
|
/*
|
|
|
|
This file is part of Warzone 2100.
|
|
|
|
Copyright (C) 1999-2004 Eidos Interactive
|
2011-02-25 09:45:27 -08:00
|
|
|
Copyright (C) 2005-2011 Warzone 2100 Project
|
2007-01-15 12:09:25 -08:00
|
|
|
|
|
|
|
Warzone 2100 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.
|
|
|
|
|
|
|
|
Warzone 2100 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 Warzone 2100; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
2007-06-28 10:47:08 -07:00
|
|
|
/***************************************************************************/
|
|
|
|
/*
|
|
|
|
* pieBlitFunc.h
|
|
|
|
*
|
|
|
|
* patch for exisitng ivis rectangle draw functions.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _pieBlitFunc_h
|
|
|
|
#define _pieBlitFunc_h
|
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2006-05-27 09:37:17 -07:00
|
|
|
#include "lib/framework/frame.h"
|
2009-02-10 09:23:09 -08:00
|
|
|
#include "lib/framework/string_ext.h"
|
2007-06-28 10:47:08 -07:00
|
|
|
#include "piedef.h"
|
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
/*
|
|
|
|
* Global Definitions
|
|
|
|
*/
|
|
|
|
/***************************************************************************/
|
2010-10-24 10:55:57 -07:00
|
|
|
#define NUM_BACKDROPS 7
|
2010-01-02 22:11:23 -08:00
|
|
|
|
2007-06-28 10:47:08 -07:00
|
|
|
#define BACKDROP_WIDTH 640
|
|
|
|
#define BACKDROP_HEIGHT 480
|
|
|
|
|
2007-02-25 04:57:04 -08:00
|
|
|
/* These are Qamly's hacks used for map previews. They need to be power of
|
|
|
|
* two sized until we clean up this mess properly. */
|
|
|
|
#define BACKDROP_HACK_WIDTH 512
|
|
|
|
#define BACKDROP_HACK_HEIGHT 512
|
|
|
|
|
2007-06-28 10:47:08 -07:00
|
|
|
/***************************************************************************/
|
|
|
|
/*
|
|
|
|
* Global Variables
|
|
|
|
*/
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
/*
|
|
|
|
* Global ProtoTypes
|
|
|
|
*/
|
|
|
|
/***************************************************************************/
|
2010-10-13 09:50:12 -07:00
|
|
|
extern void iV_Line(int x0, int y0, int x1, int y1, PIELIGHT colour);
|
|
|
|
extern void iV_Box(int x0,int y0, int x1, int y1, PIELIGHT colour);
|
2007-11-26 13:48:36 -08:00
|
|
|
extern void pie_BoxFill(int x0,int y0, int x1, int y1, PIELIGHT colour);
|
2010-10-13 09:50:12 -07:00
|
|
|
extern void iV_DrawImage(IMAGEFILE *ImageFile, UWORD ID, int x, int y);
|
|
|
|
extern void iV_DrawImageRect(IMAGEFILE *ImageFile, UWORD ID, int x, int y, int Width, int Height);
|
2007-06-28 10:47:08 -07:00
|
|
|
|
2010-10-13 09:50:12 -07:00
|
|
|
extern void iV_TransBoxFill(float x0, float y0, float x1, float y1);
|
2008-11-30 07:10:49 -08:00
|
|
|
extern void pie_UniTransBoxFill(float x0, float y0, float x1, float y1, PIELIGHT colour);
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
extern BOOL pie_InitRadar(void);
|
|
|
|
extern BOOL pie_ShutdownRadar(void);
|
2010-07-01 12:49:12 -07:00
|
|
|
extern void pie_DownLoadRadar(UDWORD *buffer, int width, int height, bool filter);
|
2008-02-04 10:03:02 -08:00
|
|
|
extern void pie_RenderRadar(int x, int y, int width, int height);
|
2007-06-28 10:47:08 -07:00
|
|
|
|
2007-06-27 05:30:29 -07:00
|
|
|
extern void pie_UploadDisplayBuffer(void);
|
2007-06-28 10:47:08 -07:00
|
|
|
|
2011-02-25 12:30:13 -08:00
|
|
|
enum SCREENTYPE
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
SCREEN_RANDOMBDROP,
|
|
|
|
SCREEN_CREDITS,
|
|
|
|
SCREEN_MISSIONEND,
|
2011-02-25 12:30:13 -08:00
|
|
|
};
|
2007-06-28 10:47:08 -07:00
|
|
|
|
2006-12-31 10:19:19 -08:00
|
|
|
extern void pie_LoadBackDrop(SCREENTYPE screenType);
|
2007-06-28 10:47:08 -07:00
|
|
|
|
2006-05-27 09:37:17 -07:00
|
|
|
#endif //
|