www.pudn.com > Gimcrack-v0.0051-Source.zip > loader.h
///////////////////////////////////////////////////////
// //
// This is a abstract class for use with the CTarga //
// and CBitmap classes. //
// //
///////////////////////////////////////////////////////
#ifndef _LOADER_H_
#define _LOADER_H_
#include "../global.h"
class GcLoader
{
public:
// Load bitmap from file
virtual bool Load(char *fileName) = NULL;
// Write bitmap to file
virtual bool Write(char *fileName, uint width, uint height, uint screenBpp) = NULL;
// Take a screenshot
virtual void Screenshot(char *fileName, uint winWidth, uint winHeight, uint screenBpp) = NULL;
// Draw the bitmap
virtual void Draw(uint xPos, uint yPos) = NULL;
// Height/Width/Size
virtual uint Height() = NULL;
virtual uint Width() = NULL;
virtual byte Bpp() = NULL;
virtual uint Size() = NULL;
// Image
virtual byte *Image() = NULL;
virtual byte Image(int index) = NULL;
// Destroy
virtual void Destroy() = NULL;
private:
};
#endif