resonance 1.0.1
Loading...
Searching...
No Matches
atgafile.h
Go to the documentation of this file.
1#pragma once
2
3#include "rndartt/agfxfile.h"
4
15class ATgaFile : public AGfxFile {
16public:
24 explicit ATgaFile(FILE *pFile) : AGfxFile(pFile) {
25 }
26
36 virtual int StartRead();
37
51 virtual int ReadFrame(ABitmap &image, int *pbEnd);
52
61 virtual int Write(const ABitmap &bitmap);
62
63private:
77 int ReadPixels(ABitmap *pImage);
78
79 int mTopDown; // +0x18 Set when either origin bit of the image descriptor is set.
80 int mRle; // +0x1c Set for image type 10.
81 int mPixelDepth; // +0x20 Bits per pixel.
82 int mWidth; // +0x24
83 int mHeight; // +0x28
84 int mImageRead; // +0x2c Cleared by StartRead() and never set.
85};
Description of a pixel rectangle, its layout, and its palette.
Definition abitmap.h:95
AGfxFile(FILE *pFile)
Construct over an open file.
Definition agfxfile.h:74
virtual int Write(const ABitmap &bitmap)
Slot 5.
ATgaFile(FILE *pFile)
Construct over an open file.
Definition atgafile.h:24
virtual int StartRead()
Slot 1.
virtual int ReadFrame(ABitmap &image, int *pbEnd)
Slot 3.