Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members

pltga.h

Go to the documentation of this file.
00001 /*
00002 /--------------------------------------------------------------------
00003 |
00004 |      $Id: pltga.h,v 1.3 2002/02/24 13:00:40 uzadow Exp $
00005 |
00006 |      Copyright (c) 1996-2002 Ulrich von Zadow
00007 |
00008 \--------------------------------------------------------------------
00009 */
00010 
00011 //! \file
00012 //! Defines structures and constants present in TGA files.
00013 
00014 #ifndef INCL_PLTGA
00015 #define INCL_PLTGA
00016 
00017 typedef struct _TgaHeader
00018 {
00019     PLBYTE   IdLength;            // Image ID Field Length
00020     PLBYTE   CmapType;            // Color Map Type
00021     PLBYTE   ImageType;           // Image Type
00022 
00023     PLWORD   CmapIndex;           // First Entry Index
00024     PLWORD   CmapLength;          // Color Map Length
00025     PLBYTE   CmapEntrySize;       // Color Map Entry Size
00026 
00027     PLWORD   X_Origin;            // X-origin of Image
00028     PLWORD   Y_Origin;            // Y-origin of Image
00029     PLWORD   ImageWidth;          // Image Width
00030     PLWORD   ImageHeight;         // Image Height
00031     PLBYTE   PixelDepth;          // Pixel Depth
00032     PLBYTE   ImagDesc;            // Image Descriptor
00033 } TGAHEADER;
00034 
00035 // Definitions for image types.
00036 #define TGA_Null 0
00037 #define TGA_Map 1
00038 #define TGA_RGB 2
00039 #define TGA_Mono 3
00040 #define TGA_RLEMap 9
00041 #define TGA_RLERGB 10
00042 #define TGA_RLEMono 11
00043 #define TGA_CompMap 32
00044 #define TGA_CompMap4 33
00045 
00046 
00047 #endif
00048 /*
00049 /--------------------------------------------------------------------
00050 |
00051 |      $Log: pltga.h,v $
00052 |      Revision 1.3  2002/02/24 13:00:40  uzadow
00053 |      Documentation update; removed buggy PLFilterRotate.
00054 |
00055 |      Revision 1.2  2001/10/06 22:03:26  uzadow
00056 |      Added PL prefix to basic data types.
00057 |
00058 |      Revision 1.1  2001/09/16 19:03:22  uzadow
00059 |      Added global name prefix PL, changed most filenames.
00060 |
00061 |      Revision 1.3  1999/10/03 18:50:52  Ulrich von Zadow
00062 |      Added automatic logging of changes.
00063 |
00064 |
00065 --------------------------------------------------------------------
00066 */

Generated on Sun Jun 6 13:42:22 2004 for paintlib by doxygen 1.3.2