~ubuntu-branches/ubuntu/hoary/devil/hoary

« back to all changes in this revision

Viewing changes to src-IL/include/il_icon.h

  • Committer: Bazaar Package Importer
  • Author(s): Marcelo E. Magallon
  • Date: 2005-01-03 19:57:42 UTC
  • Revision ID: james.westby@ubuntu.com-20050103195742-4ipkplcwygu3irv0
Tags: upstream-1.6.7
ImportĀ upstreamĀ versionĀ 1.6.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//-----------------------------------------------------------------------------
 
2
//
 
3
// ImageLib Sources
 
4
// Copyright (C) 2000-2002 by Denton Woods
 
5
// Last modified: 05/25/2001 <--Y2K Compliant! =]
 
6
//
 
7
// Filename: src-IL/include/il_icon.h
 
8
//
 
9
// Description: Reads from a Windows icon (.ico) file.
 
10
//
 
11
//-----------------------------------------------------------------------------
 
12
 
 
13
 
 
14
#ifndef ICON_H
 
15
#define ICON_H
 
16
 
 
17
#include "il_internal.h"
 
18
 
 
19
ILboolean iLoadIconInternal();
 
20
 
 
21
 
 
22
#ifdef _WIN32
 
23
        #pragma pack(push, ico_struct, 1)
 
24
#endif
 
25
typedef struct ICODIR
 
26
{
 
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;
 
31
 
 
32
typedef struct ICODIRENTRY
 
33
{
 
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;
 
43
 
 
44
typedef struct INFOHEAD
 
45
{
 
46
        ILint           Size;
 
47
        ILint           Width;
 
48
        ILint           Height;
 
49
        ILshort         Planes;
 
50
        ILshort         BitCount;
 
51
        ILint           Compression;
 
52
        ILint           SizeImage;
 
53
        ILint           XPixPerMeter;
 
54
        ILint           YPixPerMeter;
 
55
        ILint           ColourUsed;
 
56
        ILint           ColourImportant;
 
57
} IL_PACKSTRUCT INFOHEAD;
 
58
 
 
59
typedef struct ICOIMAGE
 
60
{
 
61
        INFOHEAD        Head;
 
62
        ILubyte         *Pal;   // Palette
 
63
        ILubyte         *Data;  // XOR mask
 
64
        ILubyte         *AND;   // AND mask
 
65
} ICOIMAGE;
 
66
#ifdef _WIN32
 
67
        #pragma pack(pop, ico_struct)
 
68
#endif
 
69
 
 
70
 
 
71
#endif//ICON_H