- Main Page
- Data Structures
- Files

- File List
- Globals

# E:/DevIL/src-IL/include/il_icns.h

    00001 //-----------------------------------------------------------------------------
    00002 //
    00003 // ImageLib Sources
    00004 // Copyright (C) 2000-2008 by Denton Woods
    00005 // Last modified: 08/23/2008
    00006 //
    00007 // Filename: src-IL/include/il_icns.h
    00008 //
    00009 // Description: Reads from a Mac OS X icon (.icns) file.
    00010 //
    00011 //-----------------------------------------------------------------------------
    00012
    00013
    00014 #ifndef ICNS_H
    00015 #define ICNS_H
    00016
    00017 #include "il_internal.h"
    00018
    00019 #ifdef _WIN32
    00020         #pragma pack(push, icns_struct, 1)
    00021 #endif
    00022 typedef struct ICNSHEAD
    00023 {
    00024         char            Head[4];        // Must be 'ICNS'
    00025         ILint           Size;           // Total size of the file (including header)
    00026 } IL_PACKSTRUCT ICNSHEAD;
    00027
    00028 typedef struct ICNSDATA
    00029 {
    00030         char            ID[4];          // Identifier ('it32', 'il32', etc.)
    00031         ILint           Size;           // Total size of the entry (including identifier)
    00032 } IL_PACKSTRUCT ICNSDATA;
    00033
    00034 #ifdef _WIN32
    00035         #pragma pack(pop, icns_struct)
    00036 #endif
    00037
    00038 ILboolean iIsValidIcns();
    00039 ILboolean iLoadIcnsInternal();
    00040 ILboolean iIcnsReadData(ILboolean *BaseCreated, ILboolean IsAlpha, ILint Width, ICNSDATA *Entry, ILimage **Image);
    00041
    00042 #endif//ICNS_H