2000-08-29 21:54:22 +02:00
|
|
|
/******************/
|
|
|
|
/*** GFx System ***/
|
|
|
|
/******************/
|
|
|
|
|
|
|
|
#ifndef __VID_HEADER_
|
|
|
|
#define __VID_HEADER_
|
|
|
|
|
|
|
|
#include "system\global.h"
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
2001-06-28 19:48:30 +02:00
|
|
|
#define GEOM_SCREEN_H (350)
|
2000-08-29 21:54:22 +02:00
|
|
|
|
2001-06-28 19:48:30 +02:00
|
|
|
#define INGAME_SCREENW (512)
|
|
|
|
#define INGAME_SCREENH (256)
|
2001-06-21 21:19:15 +02:00
|
|
|
|
2001-06-28 19:48:30 +02:00
|
|
|
#define INGAME_RENDER_OFS_X (8)
|
|
|
|
#define INGAME_RENDER_OFS_Y (4)
|
|
|
|
#define INGAME_SCREENOFS_X (-INGAME_SCREENW/2)
|
|
|
|
#define INGAME_SCREENOFS_Y (-INGAME_SCREENH/2)
|
2001-06-21 21:19:15 +02:00
|
|
|
|
2000-08-29 21:54:22 +02:00
|
|
|
/*****************************************************************************/
|
|
|
|
typedef void (*VbFuncType)(void);
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
struct sVidScreen
|
|
|
|
{
|
|
|
|
DRAWENV Draw;
|
|
|
|
DISPENV Disp;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
2000-12-09 18:22:06 +01:00
|
|
|
extern int FrameFlipFlag;
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
2001-06-21 21:19:15 +02:00
|
|
|
void VidInit();
|
2000-08-29 21:54:22 +02:00
|
|
|
|
2001-06-21 21:19:15 +02:00
|
|
|
void VidScrOn();
|
|
|
|
void VidSetRes(int x, int y);
|
|
|
|
void VidSetClearScreen(int );
|
|
|
|
void VidSetClearColor( const CVECTOR & col );
|
2000-08-29 21:54:22 +02:00
|
|
|
|
|
|
|
int VidGetXOfs();
|
|
|
|
int VidGetYOfs();
|
|
|
|
void VidSetXYOfs(int x,int y);
|
|
|
|
int VidGetScrW();
|
|
|
|
int VidGetScrH();
|
|
|
|
sVidScreen *VidGetScreen();
|
|
|
|
sVidScreen *VidGetDispScreen();
|
|
|
|
sVidScreen *VidGetDrawScreen();
|
|
|
|
u32 VidGetFrameCount();
|
|
|
|
u32 VidGetTickCount();
|
2000-12-20 23:46:12 +01:00
|
|
|
int VidGetVblsThisFrame();
|
2000-08-29 21:54:22 +02:00
|
|
|
|
|
|
|
void VidSwapDraw();
|
|
|
|
|
|
|
|
void VidAddVSyncFunc(VbFuncType v);
|
|
|
|
void VidRemoveVSyncFunc(VbFuncType v);
|
|
|
|
|
|
|
|
void VRamViewer();
|
|
|
|
|
2001-07-05 22:07:15 +02:00
|
|
|
void SetUpLoadIcon(void *fh);
|
2000-08-29 21:54:22 +02:00
|
|
|
void StartLoad(int _loadX=430,int _loadY=202);
|
|
|
|
void StopLoad();
|
|
|
|
|
|
|
|
void SetScreenImage(u8 *Ptr);
|
|
|
|
u8 *GetScreenImage();
|
|
|
|
void ClearScreenImage();
|
|
|
|
|
2001-07-28 18:45:46 +02:00
|
|
|
u8 *LoadPakScreen(int Filename);
|
|
|
|
|
2000-08-29 21:54:22 +02:00
|
|
|
#endif
|