Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
55 lines
1.3 KiB
C
55 lines
1.3 KiB
C
//-----------------------------------------------------------------------------
|
|
//
|
|
// ImageLib Sources
|
|
// Copyright (C) 2000-2002 by Denton Woods
|
|
// Last modified: 05/25/2001 <--Y2K Compliant! =]
|
|
//
|
|
// Filename: src-IL/include/il_pal.h
|
|
//
|
|
// Description: Loads palettes from different file formats
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
#ifndef IL_PAL_H
|
|
#define IL_PAL_H
|
|
|
|
#include "il_internal.h"
|
|
|
|
#define BUFFLEN 256
|
|
#define PALBPP 3
|
|
|
|
#ifdef _MSC_VER
|
|
#pragma pack(push, packed_struct, 1)
|
|
#endif
|
|
typedef struct HALOHEAD
|
|
{
|
|
ILushort Id; // 'AH'
|
|
ILshort Version;
|
|
ILshort Size;
|
|
ILbyte Filetype;
|
|
ILbyte Subtype;
|
|
//ILshort Brdid, Grmode;
|
|
ILint Ignored;
|
|
ILushort MaxIndex; // Colors = maxindex + 1
|
|
ILushort MaxRed;
|
|
ILushort MaxGreen;
|
|
ILushort MaxBlue;
|
|
/*ILbyte Signature[8];
|
|
ILbyte Filler[12];*/
|
|
ILbyte Filler[20]; // Always 0 by PSP 4
|
|
} IL_PACKSTRUCT HALOHEAD;
|
|
#ifdef _MSC_VER
|
|
#pragma pack(pop, packed_struct)
|
|
#endif
|
|
|
|
ILboolean ilLoadJascPal(ILconst_string FileName);
|
|
ILboolean ilSaveJascPal(ILconst_string FileName);
|
|
char *iFgetw(ILubyte *Buff, ILint MaxLen, FILE *File);
|
|
ILboolean ilLoadHaloPal(ILconst_string FileName);
|
|
ILboolean ilLoadColPal(ILconst_string FileName);
|
|
ILboolean ilLoadActPal(ILconst_string FileName);
|
|
ILboolean ilLoadPltPal(ILconst_string FileName);
|
|
|
|
#endif//IL_PAL_H
|