00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 #ifndef IL_PAL_H
00015 #define IL_PAL_H
00016 
00017 #include "il_internal.h"
00018 
00019 #define BUFFLEN 256
00020 #define PALBPP  3
00021 
00022 #ifdef _MSC_VER
00023 #pragma pack(push, packed_struct, 1)
00024 #endif
00025 typedef struct HALOHEAD
00026 {
00027         ILushort        Id;  
00028         ILshort         Version;
00029         ILshort         Size;
00030         ILbyte          Filetype;
00031         ILbyte          Subtype;
00032         
00033         ILint           Ignored;
00034         ILushort        MaxIndex;  
00035         ILushort        MaxRed;
00036         ILushort        MaxGreen;
00037         ILushort        MaxBlue;
00038         
00039 
00040         ILbyte          Filler[20];  
00041 } IL_PACKSTRUCT HALOHEAD;
00042 #ifdef _MSC_VER
00043 #pragma pack(pop,  packed_struct)
00044 #endif
00045 
00046 ILboolean       ilLoadJascPal(ILconst_string FileName);
00047 ILboolean       ilSaveJascPal(ILconst_string FileName);
00048 char            *iFgetw(ILubyte *Buff, ILint MaxLen, FILE *File);
00049 ILboolean       ilLoadHaloPal(ILconst_string FileName);
00050 ILboolean       ilLoadColPal(ILconst_string FileName);
00051 ILboolean       ilLoadActPal(ILconst_string FileName);
00052 ILboolean       ilLoadPltPal(ILconst_string FileName);
00053 
00054 #endif//IL_PAL_H