00001
00002
00003 #ifndef TGAH
00004 #define TGAH
00005
00006 enum
00007 {
00008 TGA_ERROR_FILE_OPEN,
00009 TGA_ERROR_READING_FILE,
00010 TGA_ERROR_INDEXED_COLOR,
00011 TGA_ERROR_MEMORY,
00012 TGA_ERROR_COMPRESSED_FILE,
00013 TGA_OK
00014 };
00015
00016 int tgaSave( char *filename,
00017 short int width,
00018 short int height,
00019 unsigned char pixelDepth,
00020 unsigned char *imageData
00021 );
00022
00023 int tgaSaveSeries
00024 (
00025 char *filename,
00026 short int width,
00027 short int height,
00028 unsigned char pixelDepth,
00029 unsigned char *imageData
00030 );
00031
00032 typedef struct
00033 {
00034 int status;
00035 unsigned char type, pixelDepth;
00036 short int width, height;
00037 unsigned char *imageData;
00038 }
00039 tgaInfo;
00040
00041 #endif
00042