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 >
Wrap
C/C++ Source or Header
|
1997-09-01
|
811b
|
47 lines
//////////////////////
// tga loader class //
//////////////////////
#ifndef __TGA_LOADER_H
#define __TGA_LOADER_H
#include "file.h"
#include "loader.h"
#include "convert.h"
class TGALoader : public ImageLoader
{
public:
// setup
TGALoader();
TGALoader(File &handle);
virtual ~TGALoader();
// interface
virtual int info(int &width,int &height,int &advance,FORMAT &format,int &palette);
virtual int load(void *image,void *palette);
virtual int save(int width,int height,int advance,
FORMAT const &src,FORMAT const &dest,
void *image,void *palette,char *options=NULL);
private:
// file
File *file;
};
#endif