DevIL: /home/dwoods/DevIL/src-IL/include/il_pal.h Source File

- Main Page
- Data Structures
- Files

# /home/dwoods/DevIL/src-IL/include/il_pal.h

    00001 //-----------------------------------------------------------------------------
    00002 //
    00003 // ImageLib Sources
    00004 // Copyright (C) 2000-2002 by Denton Woods
    00005 // Last modified: 05/25/2001 <--Y2K Compliant! =]
    00006 //
    00007 // Filename: src-IL/include/il_pal.h
    00008 //
    00009 // Description: Loads palettes from different file formats
    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;  // 'AH'
    00028         ILshort         Version;
    00029         ILshort         Size;
    00030         ILbyte          Filetype;
    00031         ILbyte          Subtype;
    00032         //ILshort       Brdid, Grmode;
    00033         ILint           Ignored;
    00034         ILushort        MaxIndex;  // Colors = maxindex + 1
    00035         ILushort        MaxRed;
    00036         ILushort        MaxGreen;
    00037         ILushort        MaxBlue;
    00038         /*ILbyte        Signature[8];
    00039         ILbyte          Filler[12];*/
    00040         ILbyte          Filler[20];  // Always 0 by PSP 4
    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