Windows.


Tombstone - 2


unsigned char blue; // (0-63)

} RGB_color, *RGB_color_ptr;

 

typedef struct pcx_header_typ

{ char manufacturer;

char version;

char encoding;

char bits_per_pixel;

int x,y;

int width,height;

int horz_res;

int vert_res;

char ega_palette[46];

char reserved;

char num_color_planes;

int bytes_per_line;

int palette_type;

char padding[58];

} pcx_header, *pcx_header_ptr;

typedef struct pcx_picture_typ

{

pcx_header header;

RGB_color palette[256];

char far *buffer;

} pcx_picture, *pcx_picture_ptr;

typedef struct sprite_typ

{

int x,y; //

int x_old,y_old; //

int width,height; //

int anim_clock; //

int anim_speed; //

int motion_speed; //

int motion_clock; //

char far *frames[MAX_SPRITE__FRAMES]; //

//

int curr_frame; //

int num_frames; //

int state; //

char far *background; //

}sprite, *sprite_ptr;

// /////////////////////////////////

extern Set_Mode(int mode);

// ///////////////////////////////////////

void Set_Palette_Register(int index, RGB_color_ptr color);

void Plot_Pixel_Fast(int x,int y,unsigned char color);

void PCX_Init(pcx_picture *image);

void PCX_Delete(pcx_picture *image);

void PCX_Load(char *filename, pcx_picture_ptr image, int enable_palette) ;

void PCX_Show_Buffer(pcx_picture_ptr image);

// //////////////////////////////

unsigned char far *video_buffer = (char far *) 0xA0000000L;

unsigned int far *video_buffer_w = (int far *)0xA0000000L;

unsigned char far *rom_char_set = (char far *)0xF000FA6EL;

// ////////////////////////////////////////////

void Blit_Char(int xc,int yc,char c,int color) {