1
//-----------------------------------------------------------------------------
4
// Copyright (C) 2000-2002 by Denton Woods
5
// Last modified: 05/25/2001 <--Y2K Compliant! =]
7
// Filename: src-IL/include/il_icon.h
9
// Description: Reads from a Windows icon (.ico) file.
11
//-----------------------------------------------------------------------------
17
#include "il_internal.h"
19
ILboolean iLoadIconInternal();
23
#pragma pack(push, ico_struct, 1)
27
ILshort Reserved; // Reserved (must be 0)
28
ILshort Type; // Type (1 for icons, 2 for cursors)
29
ILshort Count; // How many different images?
30
} IL_PACKSTRUCT ICODIR;
32
typedef struct ICODIRENTRY
34
ILubyte Width; // Width, in pixels
35
ILubyte Height; // Height, in pixels
36
ILubyte NumColours; // Number of colors in image (0 if >=8bpp)
37
ILubyte Reserved; // Reserved (must be 0)
38
ILshort Planes; // Colour planes
39
ILshort Bpp; // Bits per pixel
40
ILuint SizeOfData; // How many bytes in this resource?
41
ILuint Offset; // Offset from beginning of the file
42
} IL_PACKSTRUCT ICODIRENTRY;
44
typedef struct INFOHEAD
56
ILint ColourImportant;
57
} IL_PACKSTRUCT INFOHEAD;
59
typedef struct ICOIMAGE
62
ILubyte *Pal; // Palette
63
ILubyte *Data; // XOR mask
64
ILubyte *AND; // AND mask
67
#pragma pack(pop, ico_struct)