home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Amiga / Jeux / demos / crystalPPC.lha / gifload.h < prev    next >
C/C++ Source or Header  |  1998-01-15  |  721b  |  27 lines

  1. typedef struct {
  2.      unsigned char red, green, blue;
  3. } RGBcolor;
  4.  
  5. typedef enum { formatGIF87, formatGIF89, formatPPM, formatUnknown } 
  6.    Graphic_file_format;
  7.  
  8. typedef enum { gfTrueColor, gfPaletted } Graphic_file_type;
  9.  
  10. typedef struct Graphic_file {
  11.      Graphic_file_type type;
  12.      int height, width;
  13.      int palette_entries;
  14.      long transparent_entry;
  15.      RGBcolor *palette;
  16.      unsigned char *bitmap;
  17. } Graphic_file;
  18.  
  19.  
  20. extern Graphic_file *new_graphic_file();
  21. extern void free_graphic_file(Graphic_file *gfile);
  22. extern int graphic_file_pixel(Graphic_file *gfile, int x, int y,
  23.                   RGBcolor *rgb);
  24. extern Graphic_file *read_graphic_file(char *filename);
  25.  
  26. extern Graphic_file *LoadGIF(FILE *fp, char *fname );
  27.