home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / flash078.zip / flashsource-r0_7_8.zip / FTarga.h < prev    next >
C/C++ Source or Header  |  2001-07-30  |  428b  |  28 lines

  1. #ifndef FLASH_HEADER_TARGA
  2. #define FLASH_HEADER_TARGA
  3.  
  4. #include "FBase.h"
  5.  
  6. class FlashTarga
  7. {
  8. public:
  9.     FlashTarga(char *_fname) : fname(_fname), data(NULL) {}
  10.     ~FlashTarga() { if(data != NULL) free(data); }
  11.     
  12.     const unsigned char *GetData() { return data; }
  13.     void Read();
  14.     
  15.     UWORD GetWidth() { return width; }
  16.     UWORD GetHeight() { return height; }
  17.  
  18.     UWORD width;
  19.     UWORD height;
  20.  
  21.     char *fname;
  22.     unsigned char *data;
  23.  
  24. };
  25.  
  26. #endif
  27.  
  28.