pcem/src/video.h
TomW 2207f704dd Added per-device configuration.
Reworked configuration parser a bit.
Added configuration for S3 ViRGE and 8-bit Sound Blasters.
IRQ 2 routed to IRQ 9 on AT machines.
2014-06-30 21:31:28 +01:00

70 lines
1.5 KiB
C

int video_card_available(int card);
char *video_card_getname(int card);
struct device_t *video_card_getdevice(int card);
int video_card_has_config(int card);
int video_card_getid(char *s);
int video_old_to_new(int card);
int video_new_to_old(int card);
extern int video_fullscreen, video_fullscreen_scale, video_fullscreen_first;
enum
{
FULLSCR_SCALE_FULL = 0,
FULLSCR_SCALE_43,
FULLSCR_SCALE_SQ,
FULLSCR_SCALE_INT
};
extern int egareads,egawrites;
extern int fullchange;
extern int changeframecount;
typedef struct
{
int w, h;
uint8_t *dat;
uint8_t *line[0];
} BITMAP;
extern BITMAP *buffer, *buffer32;
extern BITMAP *screen;
BITMAP *create_bitmap(int w, int h);
extern uint8_t fontdat[256][8];
extern uint8_t fontdatm[256][16];
extern uint32_t *video_15to32, *video_16to32;
extern int xsize,ysize;
typedef struct
{
uint8_t r, g, b;
} RGB;
typedef RGB PALETTE[256];
extern float cpuclock;
extern int emu_fps, frames;
#define makecol(r, g, b) ((b) | ((g) << 8) | ((r) << 16))
#define makecol32(r, g, b) ((b) | ((g) << 8) | ((r) << 16))
extern int readflash;
extern void (*video_recalctimings)();
extern void (*video_blit_memtoscreen)(int x, int y, int y1, int y2, int w, int h);
extern void (*video_blit_memtoscreen_8)(int x, int y, int w, int h);
extern int video_timing_b, video_timing_w, video_timing_l;
extern int video_speed;
extern int video_res_x, video_res_y, video_bpp;
extern int vid_resize;