PCem
view src/video.h @ 113:f749363ad763
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.
| author | TomW |
|---|---|
| date | Mon Jun 30 21:31:28 2014 +0100 |
| parents | f85939140905 |
| children | d0d530adce12 |
line source
1 int video_card_available(int card);
2 char *video_card_getname(int card);
3 struct device_t *video_card_getdevice(int card);
4 int video_card_has_config(int card);
5 int video_card_getid(char *s);
6 int video_old_to_new(int card);
7 int video_new_to_old(int card);
9 extern int video_fullscreen, video_fullscreen_scale, video_fullscreen_first;
11 enum
12 {
13 FULLSCR_SCALE_FULL = 0,
14 FULLSCR_SCALE_43,
15 FULLSCR_SCALE_SQ,
16 FULLSCR_SCALE_INT
17 };
19 extern int egareads,egawrites;
21 extern int fullchange;
22 extern int changeframecount;
24 typedef struct
25 {
26 int w, h;
27 uint8_t *dat;
28 uint8_t *line[0];
29 } BITMAP;
31 extern BITMAP *buffer, *buffer32;
33 extern BITMAP *screen;
35 BITMAP *create_bitmap(int w, int h);
37 extern uint8_t fontdat[256][8];
38 extern uint8_t fontdatm[256][16];
40 extern uint32_t *video_15to32, *video_16to32;
42 extern int xsize,ysize;
44 typedef struct
45 {
46 uint8_t r, g, b;
47 } RGB;
49 typedef RGB PALETTE[256];
51 extern float cpuclock;
53 extern int emu_fps, frames;
55 #define makecol(r, g, b) ((b) | ((g) << 8) | ((r) << 16))
56 #define makecol32(r, g, b) ((b) | ((g) << 8) | ((r) << 16))
58 extern int readflash;
60 extern void (*video_recalctimings)();
62 extern void (*video_blit_memtoscreen)(int x, int y, int y1, int y2, int w, int h);
63 extern void (*video_blit_memtoscreen_8)(int x, int y, int w, int h);
65 extern int video_timing_b, video_timing_w, video_timing_l;
66 extern int video_speed;
68 extern int video_res_x, video_res_y, video_bpp;
70 extern int vid_resize;
