home *** CD-ROM | disk | FTP | other *** search
/ Computer Panoráma / computer_panorama_1997-12-hibas.iso / SHARE / GRAPH / PTC051.ZIP / SRC / TGA.H < prev    next >
C/C++ Source or Header  |  1997-09-01  |  811b  |  47 lines

  1. //////////////////////
  2. // tga loader class //
  3. //////////////////////
  4.  
  5. #ifndef __TGA_LOADER_H
  6. #define __TGA_LOADER_H
  7.  
  8. #include "file.h"
  9. #include "loader.h"
  10. #include "convert.h"
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. class TGALoader : public ImageLoader
  19. {
  20.     public:
  21.  
  22.         // setup
  23.         TGALoader();
  24.         TGALoader(File &handle);
  25.         virtual ~TGALoader();
  26.  
  27.         // interface
  28.         virtual int info(int &width,int &height,int &advance,FORMAT &format,int &palette);
  29.         virtual int load(void *image,void *palette); 
  30.         virtual int save(int width,int height,int advance,
  31.                          FORMAT const &src,FORMAT const &dest,
  32.                          void *image,void *palette,char *options=NULL);
  33.     private:
  34.  
  35.         // file
  36.         File *file;
  37. };
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46. #endif
  47.