about summary refs log tree commit diff
path: root/converter/tga.h
diff options
context:
space:
mode:
Diffstat (limited to 'converter/tga.h')
-rw-r--r--converter/tga.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/converter/tga.h b/converter/tga.h
index fdbe4047..1a65663d 100644
--- a/converter/tga.h
+++ b/converter/tga.h
@@ -44,3 +44,16 @@ typedef char ImageIDField[IMAGEIDFIELDMAXSIZE];
 #define TGA_IL_Four 2
 
 enum TGAbaseImageType {TGA_MAP_TYPE, TGA_MONO_TYPE, TGA_RGB_TYPE};
+
+enum TGAmapType {
+    /* A type of Targa color map */
+    TGA_MAPTYPE_SHORT,
+        /* Each entry in the color map is 2 bytes: 5 bits each of
+           red, green, and blue, and one optional alpha bit.
+        */
+    TGA_MAPTYPE_LONG
+        /* Each entry in the color map is 3 bytes: red, green, and blue,
+           plus one optional alpha byte
+        */
+};
+