summaryrefslogtreecommitdiff
path: root/includes/Image.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Image.h')
-rw-r--r--includes/Image.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/includes/Image.h b/includes/Image.h
deleted file mode 100644
index 87a8ddd..0000000
--- a/includes/Image.h
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef __IMAGE_H__
-#define __IMAGE_H__
-#ifdef __cplusplus
-
-#include <Buffer.h>
-#include <generic.h>
-#include <Color.h>
-
-enum {
- FORMAT_TGA_BASIC
-};
-
-class Image : public Buffer {
- public:
- Image(unsigned int, unsigned int);
- virtual ~Image();
- Color GetPixel(unsigned int, unsigned int) const;
- void SetPixel(unsigned int, unsigned int, Color);
- bool Prepare(unsigned int = FORMAT_TGA_BASIC);
- void Fill(Color = Color(0, 0, 0));
- virtual String GetName() const;
- virtual bool CanWrite() const;
-
- private:
- typedef unsigned char Byte;
- typedef unsigned short int Word;
- typedef unsigned long int DWord;
- struct TGAHeader {
- Byte IDLength;
- Byte ColorMapType;
- Byte ImageType;
- Word CM_FirstEntry;
- Word CM_Length;
- Byte CM_EntrySize;
- Word IS_XOrigin;
- Word IS_YOrigin;
- Word IS_Width;
- Word IS_Height;
- Byte IS_Depth;
- Byte IS_Descriptor;
- } PACKED;
-
- struct TGAFooter {
- DWord ExtOffset;
- DWord DevOffset;
- char Sig[18];
- } PACKED;
-
- unsigned int x, y;
- bool r;
- Color * img;
-};
-
-#else
-#error This only works with a C++ compiler
-#endif
-#endif