00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef HDR_H
00015 #define HDR_H
00016
00017 #include "il_internal.h"
00018
00019 #ifdef _WIN32
00020 #pragma pack(push, gif_struct, 1)
00021 #endif
00022
00023 typedef struct HDRHEADER
00024 {
00025 char Signature[10];
00026 ILuint Width, Height;
00027 } IL_PACKSTRUCT HDRHEADER;
00028
00029 #ifdef _WIN32
00030 #pragma pack(pop, gif_struct)
00031 #endif
00032
00033
00034 ILboolean ilIsValidHdrF(ILHANDLE file);
00035 ILboolean iIsValidHdr();
00036 ILboolean iCheckHdr(HDRHEADER *Header);
00037 ILboolean ilLoadHdrF(ILHANDLE file);
00038 ILboolean iLoadHdrInternal();
00039 ILboolean iSaveHdrInternal();
00040
00041 void ReadScanline(ILubyte *scanline, ILuint w);
00042
00043 #endif//HDR_H