14 #ifndef __PNGDRIVER_H__ 15 #define __PNGDRIVER_H__ 27 #define FILE_NAME "map.png" 29 #define HEADER_SIZE 64 68 extern void png_get_pixel(
unsigned int,
int *,
int *,
int *,
int *);
74 extern void PNG_Box(
double,
double,
double,
double);
82 extern int PNG_raster(
int,
int,
const unsigned char *,
83 const unsigned char *,
const unsigned char *,
84 const unsigned char *);
86 extern void PNG_Move(
double,
double);
87 extern void PNG_Cont(
double,
double);
const struct driver * PNG_Driver(void)
Initialize display driver.
void PNG_Cont(double, double)
void PNG_Erase(void)
Erase screen.
void png_init_color_table(void)
unsigned char palette[256][4]
const char * PNG_Graph_get_file(void)
Get render file.
void PNG_Move(double, double)
void PNG_Graph_close(void)
Close down the graphics processing. This gets called only at driver termination time.
void PNG_color_rgb(int, int, int)
Identify a color.
unsigned int png_get_color(int, int, int, int)
int PNG_raster(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
Draw raster row.
void png_get_pixel(unsigned int, int *, int *, int *, int *)
void png_draw_line(double, double, double, double)
int PNG_Graph_set(void)
Start up graphics processing.
void png_polygon(struct path *)
Draw polygon.
void PNG_begin_raster(int, int[2][2], double[2][2])
Start drawing raster.
void PNG_Point(double, double)
Draw point.
void PNG_Set_window(double, double, double, double)
Set window.
void PNG_Line_width(double)
Set line width.
void PNG_Box(double, double, double, double)
Draw a (filled) rectangle.
void PNG_Client_Close(void)
void PNG_draw_bitmap(int, int, int, const unsigned char *)
Draw bitmap.