- Main Page
- Data Structures
- Files

- File List
- Globals

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

    00001 //-----------------------------------------------------------------------------
    00002 //
    00003 // ImageLib Sources
    00004 // Copyright (C) 2000-2009 by Denton Woods
    00005 // Last modified: 01/24/2009
    00006 //
    00007 // Filename: src-IL/include/il_internal.h
    00008 //
    00009 // Description: Internal stuff for DevIL
    00010 //
    00011 //-----------------------------------------------------------------------------
    00012 #ifndef INTERNAL_H
    00013 #define INTERNAL_H
    00014 #define _IL_BUILD_LIBRARY
    00015
    00016
    00017 // Local headers
    00018 /*#if (defined(_WIN32) || defined(_WIN64)) && !defined(HAVE_CONFIG_H)
    00019         #define HAVE_CONFIG_H
    00020 #endif*/
    00021 #ifdef HAVE_CONFIG_H //if we use autotools, we have HAVE_CONFIG_H defined and we have to look for it like that
    00022 #include <config.h>
    00023 #else // if we don't use autotools, we have to point to (possibly different) config.h than in the opposite case
    00024 #include <IL/config.h>
    00025 #endif
    00026
    00027 // Standard headers
    00028 #include <stdlib.h>
    00029 #include <stdio.h>
    00030 #include <math.h>
    00031 #include <string.h>
    00032
    00033 #ifdef __cplusplus
    00034 extern "C" {
    00035 #endif
    00036
    00037 #include <IL/il.h>
    00038 #include <IL/devil_internal_exports.h>
    00039 #include "il_files.h"
    00040 #include "il_endian.h"
    00041
    00042 // Windows-specific
    00043 #ifdef _WIN32
    00044         #ifdef _MSC_VER
    00045                 #if _MSC_VER > 1000
    00046                         #pragma once
    00047                         #pragma intrinsic(memcpy)
    00048                         #pragma intrinsic(memset)
    00049                         #pragma intrinsic(strcmp)
    00050                         #pragma intrinsic(strlen)
    00051                         #pragma intrinsic(strcpy)
    00052
    00053                         #if _MSC_VER >= 1300
    00054                                 #pragma warning(disable : 4996)  // MSVC++ 8/9 deprecation warnings
    00055                         #endif
    00056                         //pragma comment(linker, "/NODEFAULTLIB:libc")
    00057                         //pragma comment(linker, "/NODEFAULTLIB:libcd")
    00058                         //pragma comment(linker, "/NODEFAULTLIB:libcmt.lib")
    00059                         //#ifdef _DEBUG
    00060                         //      pragma comment(linker, "/NODEFAULTLIB:libcmtd")
    00061                         //      pragma comment(linker, "/NODEFAULTLIB:msvcrt.lib")
    00062                         //#endif // _DEBUG
    00063                 #endif // _MSC_VER > 1000
    00064         #endif
    00065         #define WIN32_LEAN_AND_MEAN  // Exclude rarely-used stuff from Windows headers
    00066         #include <windows.h>
    00067 #endif
    00068 // Windows has a TEXT macro defined in WinNT.h that makes string Unicode if UNICODE is defined.
    00069 /*#ifndef _WIN32
    00070         #define IL_TEXT(s) s
    00071 #endif*/
    00072 /*#ifdef _WIN32_WCE
    00073         #define IL_TEXT(s) ((char*)TEXT(s))
    00074 #elif _WIN32
    00075         #define IL_TEXT(s) (s)
    00076 #else
    00077         #define IL_TEXT(s) (s)
    00078         #define TEXT(s) (s)
    00079 #endif*/
    00080
    00081 #ifdef _UNICODE
    00082         #define IL_TEXT(s) L##s
    00083         #ifndef _WIN32  // At least in Linux, fopen works fine, and wcsicmp is not defined.
    00084                 #define wcsicmp wcsncasecmp
    00085                 #define _wcsicmp wcsncasecmp
    00086                 #define _wfopen fopen
    00087         #endif
    00088         #define iStrCpy wcscpy
    00089 #else
    00090         #define IL_TEXT(s) (s)
    00091         #define iStrCpy strcpy
    00092 #endif
    00093
    00094 #ifdef IL_INLINE_ASM
    00095         #if (defined (_MSC_VER) && defined(_WIN32))  // MSVC++ only
    00096                 #define USE_WIN32_ASM
    00097         #endif
    00098
    00099         #ifdef _WIN64
    00100                 #undef USE_WIN32_ASM
    00101         //@TODO: Windows 64 compiler cannot use inline ASM, so we need to
    00102         //  generate some MASM code at some point.
    00103         #endif
    00104
    00105         #ifdef _WIN32_WCE  // Cannot use our inline ASM in Windows Mobile.
    00106                 #undef USE_WIN32_ASM
    00107         #endif
    00108 #endif
    00109 extern ILimage *iCurImage;
    00110 #define BIT_0   0x00000001
    00111 #define BIT_1   0x00000002
    00112 #define BIT_2   0x00000004
    00113 #define BIT_3   0x00000008
    00114 #define BIT_4   0x00000010
    00115 #define BIT_5   0x00000020
    00116 #define BIT_6   0x00000040
    00117 #define BIT_7   0x00000080
    00118 #define BIT_8   0x00000100
    00119 #define BIT_9   0x00000200
    00120 #define BIT_10  0x00000400
    00121 #define BIT_11  0x00000800
    00122 #define BIT_12  0x00001000
    00123 #define BIT_13  0x00002000
    00124 #define BIT_14  0x00004000
    00125 #define BIT_15  0x00008000
    00126 #define BIT_16  0x00010000
    00127 #define BIT_17  0x00020000
    00128 #define BIT_18  0x00040000
    00129 #define BIT_19  0x00080000
    00130 #define BIT_20  0x00100000
    00131 #define BIT_21  0x00200000
    00132 #define BIT_22  0x00400000
    00133 #define BIT_23  0x00800000
    00134 #define BIT_24  0x01000000
    00135 #define BIT_25  0x02000000
    00136 #define BIT_26  0x04000000
    00137 #define BIT_27  0x08000000
    00138 #define BIT_28  0x10000000
    00139 #define BIT_29  0x20000000
    00140 #define BIT_30  0x40000000
    00141 #define BIT_31  0x80000000
    00142 #define NUL '\0'  // Easier to type and ?portable?
    00143 #if !_WIN32 || _WIN32_WCE
    00144         int stricmp(const char *src1, const char *src2);
    00145         int strnicmp(const char *src1, const char *src2, size_t max);
    00146 #endif//_WIN32
    00147 #ifdef _WIN32_WCE
    00148         char *strdup(const char *src);
    00149 #endif
    00150 int iStrCmp(ILconst_string src1, ILconst_string src2);
    00151
    00152 //
    00153 // Some math functions
    00154 //
    00155 // A fast integer squareroot, completely accurate for x < 289.
    00156 // Taken from http://atoms.org.uk/sqrt/
    00157 // There is also a version that is accurate for all integers
    00158 // < 2^31, if we should need it
    00159 int iSqrt(int x);
    00160 //
    00161 // Useful miscellaneous functions
    00162 //
    00163 ILboolean       iCheckExtension(ILconst_string Arg, ILconst_string Ext);
    00164 ILbyte*         iFgets(char *buffer, ILuint maxlen);
    00165 ILboolean       iFileExists(ILconst_string FileName);
    00166 ILstring        iGetExtension(ILconst_string FileName);
    00167 ILstring        ilStrDup(ILconst_string Str);
    00168 ILuint          ilStrLen(ILconst_string Str);
    00169 ILuint          ilCharStrLen(const char *Str);
    00170 // Miscellaneous functions
    00171 void                                    ilDefaultStates(void);
    00172 ILenum                                  iGetHint(ILenum Target);
    00173 ILint                                   iGetInt(ILenum Mode);
    00174 void                                    ilRemoveRegistered(void);
    00175 ILAPI void ILAPIENTRY   ilSetCurImage(ILimage *Image);
    00176 ILuint                                  ilDetermineSize(ILenum Type);
    00177 //
    00178 // Rle compression
    00179 //
    00180 #define         IL_TGACOMP 0x01
    00181 #define         IL_PCXCOMP 0x02
    00182 #define         IL_SGICOMP 0x03
    00183 #define     IL_BMPCOMP 0x04
    00184 ILboolean       ilRleCompressLine(ILubyte *ScanLine, ILuint Width, ILubyte Bpp, ILubyte *Dest, ILuint *DestWidth, ILenum CompressMode);
    00185 ILuint          ilRleCompress(ILubyte *Data, ILuint Width, ILuint Height, ILuint Depth, ILubyte Bpp, ILubyte *Dest, ILenum CompressMode, ILuint *ScanTable);
    00186 void            iSetImage0(void);
    00187 // DXTC compression
    00188 ILuint          ilNVidiaCompressDXTFile(ILubyte *Data, ILuint Width, ILuint Height, ILuint Depth, ILenum DxtType);
    00189 ILAPI ILubyte*  ILAPIENTRY ilNVidiaCompressDXT(ILubyte *Data, ILuint Width, ILuint Height, ILuint Depth, ILenum DxtFormat, ILuint *DxtSize);
    00190 ILAPI ILubyte* ILAPIENTRY ilSquishCompressDXT(ILubyte *Data, ILuint Width, ILuint Height, ILuint Depth, ILenum DxtFormat, ILuint *DxtSize);
    00191
    00192 // Conversion functions
    00193 ILboolean       ilAddAlpha(void);
    00194 ILboolean       ilAddAlphaKey(ILimage *Image);
    00195 ILboolean       iFastConvert(ILenum DestFormat);
    00196 ILboolean       ilFixCur(void);
    00197 ILboolean       ilFixImage(void);
    00198 ILboolean       ilRemoveAlpha(void);
    00199 ILboolean       ilSwapColours(void);
    00200 // Miscellaneous functions
    00201 char*           iGetString(ILenum StringName);  // Internal version of ilGetString
    00202
    00203 //
    00204 // Image loading/saving functions
    00205 //
    00206 ILboolean ilIsValidBmp(ILconst_string CONST_RESTRICT FileName);
    00207 ILboolean ilIsValidBmpF(ILHANDLE File);
    00208 ILboolean ilIsValidBmpL(const void *Lump, const ILuint Size);
    00209 ILboolean ilLoadBmp(ILconst_string FileName);
    00210 ILboolean ilLoadBmpF(ILHANDLE File);
    00211 ILboolean ilLoadBmpL(const void *Lump, const ILuint Size);
    00212 ILboolean ilSaveBmp(ILconst_string FileName);
    00213 ILuint    ilSaveBmpF(ILHANDLE File);
    00214 ILuint    ilSaveBmpL(void *Lump, ILuint Size);
    00215 ILboolean ilSaveCHeader(ILconst_string FileName, char *InternalName);
    00216 ILboolean ilLoadCut(ILconst_string FileName);
    00217 ILboolean ilLoadCutF(ILHANDLE File);
    00218 ILboolean ilLoadCutL(const void *Lump, ILuint Size);
    00219 ILboolean ilIsValidDcx(ILconst_string FileName);
    00220 ILboolean ilIsValidDcxF(ILHANDLE File);
    00221 ILboolean ilIsValidDcxL(const void *Lump, ILuint Size);
    00222 ILboolean ilLoadDcx(ILconst_string FileName);
    00223 ILboolean ilLoadDcxF(ILHANDLE File);
    00224 ILboolean ilLoadDcxL(const void *Lump, ILuint Size);
    00225 ILboolean ilIsValidDds(ILconst_string FileName);
    00226 ILboolean ilIsValidDdsF(ILHANDLE File);
    00227 ILboolean ilIsValidDdsL(const void *Lump, ILuint Size);
    00228 ILboolean ilLoadDds(ILconst_string FileName);
    00229 ILboolean ilLoadDdsF(ILHANDLE File);
    00230 ILboolean ilLoadDdsL(const void *Lump, ILuint Size);
    00231 ILboolean ilSaveDds(ILconst_string FileName);
    00232 ILuint    ilSaveDdsF(ILHANDLE File);
    00233 ILuint    ilSaveDdsL(void *Lump, ILuint Size);
    00234 ILboolean ilLoadDoom(ILconst_string FileName);
    00235 ILboolean ilLoadDoomF(ILHANDLE File);
    00236 ILboolean ilLoadDoomL(const void *Lump, ILuint Size);
    00237 ILboolean ilLoadDoomFlat(ILconst_string FileName);
    00238 ILboolean ilLoadDoomFlatF(ILHANDLE File);
    00239 ILboolean ilLoadDoomFlatL(const void *Lump, ILuint Size);
    00240 ILboolean ilIsValidExr(ILconst_string FileName);
    00241 ILboolean ilIsValidExrF(ILHANDLE File);
    00242 ILboolean ilIsValidExrL(const void *Lump, ILuint Size);
    00243 ILboolean ilLoadExr(ILconst_string FileName);
    00244 ILboolean ilLoadExrF(ILHANDLE File);
    00245 ILboolean ilLoadExrL(const void *Lump, ILuint Size);
    00246 ILboolean ilSaveExr(ILconst_string FileName);
    00247 ILuint    ilSaveExrF(ILHANDLE File);
    00248 ILuint    ilSaveExrL(void *Lump, ILuint Size);
    00249 ILboolean ilIsValidGif(ILconst_string FileName);
    00250 ILboolean ilIsValidGifF(ILHANDLE File);
    00251 ILboolean ilIsValidGifL(const void *Lump, ILuint Size);
    00252 ILboolean ilLoadGif(ILconst_string FileName);
    00253 ILboolean ilLoadGifF(ILHANDLE File);
    00254 ILboolean ilLoadGifL(const void *Lump, ILuint Size);
    00255 ILboolean ilIsValidHdr(ILconst_string FileName);
    00256 ILboolean ilIsValidHdrF(ILHANDLE File);
    00257 ILboolean ilIsValidHdrL(const void *Lump, ILuint Size);
    00258 ILboolean ilLoadHdr(ILconst_string FileName);
    00259 ILboolean ilLoadHdrF(ILHANDLE File);
    00260 ILboolean ilLoadHdrL(const void *Lump, ILuint Size);
    00261 ILboolean ilSaveHdr(ILconst_string FileName);
    00262 ILuint    ilSaveHdrF(ILHANDLE File);
    00263 ILuint    ilSaveHdrL(void *Lump, ILuint Size);
    00264 ILboolean ilLoadIcon(ILconst_string FileName);
    00265 ILboolean ilLoadIconF(ILHANDLE File);
    00266 ILboolean ilLoadIconL(const void *Lump, ILuint Size);
    00267 ILboolean ilIsValidIcns(ILconst_string FileName);
    00268 ILboolean ilIsValidIcnsF(ILHANDLE File);
    00269 ILboolean ilIsValidIcnsL(const void *Lump, ILuint Size);
    00270 ILboolean ilLoadIcns(ILconst_string FileName);
    00271 ILboolean ilLoadIcnsF(ILHANDLE File);
    00272 ILboolean ilLoadIcnsL(const void *Lump, ILuint Size);
    00273 ILboolean ilLoadIff(ILconst_string FileName);
    00274 ILboolean ilLoadIffF(ILHANDLE File);
    00275 ILboolean ilLoadIffL(const void *Lump, ILuint Size);
    00276 ILboolean ilIsValidJp2(ILconst_string FileName);
    00277 ILboolean ilIsValidJp2F(ILHANDLE File);
    00278 ILboolean ilIsValidJp2L(const void *Lump, ILuint Size);
    00279 ILboolean ilLoadJp2(ILconst_string FileName);
    00280 ILboolean ilLoadJp2F(ILHANDLE File);
    00281 ILboolean ilLoadJp2L(const void *Lump, ILuint Size);
    00282 ILboolean ilLoadJp2LInternal(const void *Lump, ILuint Size, ILimage *Image);
    00283 ILboolean ilSaveJp2(ILconst_string FileName);
    00284 ILuint    ilSaveJp2F(ILHANDLE File);
    00285 ILuint    ilSaveJp2L(void *Lump, ILuint Size);
    00286 ILboolean ilIsValidJpeg(ILconst_string FileName);
    00287 ILboolean ilIsValidJpegF(ILHANDLE File);
    00288 ILboolean ilIsValidJpegL(const void *Lump, ILuint Size);
    00289 ILboolean ilLoadJpeg(ILconst_string FileName);
    00290 ILboolean ilLoadJpegF(ILHANDLE File);
    00291 ILboolean ilLoadJpegL(const void *Lump, ILuint Size);
    00292 ILboolean ilSaveJpeg(ILconst_string FileName);
    00293 ILuint    ilSaveJpegF(ILHANDLE File);
    00294 ILuint    ilSaveJpegL(void *Lump, ILuint Size);
    00295 ILboolean ilIsValidLif(ILconst_string FileName);
    00296 ILboolean ilIsValidLifF(ILHANDLE File);
    00297 ILboolean ilIsValidLifL(const void *Lump, ILuint Size);
    00298 ILboolean ilLoadLif(ILconst_string FileName);
    00299 ILboolean ilLoadLifF(ILHANDLE File);
    00300 ILboolean ilLoadLifL(const void *Lump, ILuint Size);
    00301 ILboolean ilIsValidMdl(ILconst_string FileName);
    00302 ILboolean ilIsValidMdlF(ILHANDLE File);
    00303 ILboolean ilIsValidMdlL(const void *Lump, ILuint Size);
    00304 ILboolean ilLoadMdl(ILconst_string FileName);
    00305 ILboolean ilLoadMdlF(ILHANDLE File);
    00306 ILboolean ilLoadMdlL(const void *Lump, ILuint Size);
    00307 ILboolean ilLoadMng(ILconst_string FileName);
    00308 ILboolean ilLoadMngF(ILHANDLE File);
    00309 ILboolean ilLoadMngL(const void *Lump, ILuint Size);
    00310 ILboolean ilSaveMng(ILconst_string FileName);
    00311 ILuint    ilSaveMngF(ILHANDLE File);
    00312 ILuint    ilSaveMngL(void *Lump, ILuint Size);
    00313 ILboolean ilLoadPcd(ILconst_string FileName);
    00314 ILboolean ilLoadPcdF(ILHANDLE File);
    00315 ILboolean ilLoadPcdL(const void *Lump, ILuint Size);
    00316 ILboolean ilIsValidPcx(ILconst_string FileName);
    00317 ILboolean ilIsValidPcxF(ILHANDLE File);
    00318 ILboolean ilIsValidPcxL(const void *Lump, ILuint Size);
    00319 ILboolean ilLoadPcx(ILconst_string FileName);
    00320 ILboolean ilLoadPcxF(ILHANDLE File);
    00321 ILboolean ilLoadPcxL(const void *Lump, ILuint Size);
    00322 ILboolean ilSavePcx(ILconst_string FileName);
    00323 ILuint    ilSavePcxF(ILHANDLE File);
    00324 ILuint    ilSavePcxL(void *Lump, ILuint Size);
    00325 ILboolean ilIsValidPic(ILconst_string FileName);
    00326 ILboolean ilIsValidPicF(ILHANDLE File);
    00327 ILboolean ilIsValidPicL(const void *Lump, ILuint Size);
    00328 ILboolean ilLoadPic(ILconst_string FileName);
    00329 ILboolean ilLoadPicF(ILHANDLE File);
    00330 ILboolean ilLoadPicL(const void *Lump, ILuint Size);
    00331 ILboolean ilLoadPix(ILconst_string FileName);
    00332 ILboolean ilLoadPixF(ILHANDLE File);
    00333 ILboolean ilLoadPixL(const void *Lump, ILuint Size);
    00334 ILboolean ilIsValidPng(ILconst_string FileName);
    00335 ILboolean ilIsValidPngF(ILHANDLE File);
    00336 ILboolean ilIsValidPngL(const void *Lump, ILuint Size);
    00337 ILboolean ilLoadPng(ILconst_string FileName);
    00338 ILboolean ilLoadPngF(ILHANDLE File);
    00339 ILboolean ilLoadPngL(const void *Lump, ILuint Size);
    00340 ILboolean ilSavePng(ILconst_string FileName);
    00341 ILuint    ilSavePngF(ILHANDLE File);
    00342 ILuint    ilSavePngL(void *Lump, ILuint Size);
    00343 ILboolean ilIsValidPnm(ILconst_string FileName);
    00344 ILboolean ilIsValidPnmF(ILHANDLE File);
    00345 ILboolean ilIsValidPnmL(const void *Lump, ILuint Size);
    00346 ILboolean ilLoadPnm(ILconst_string FileName);
    00347 ILboolean ilLoadPnmF(ILHANDLE File);
    00348 ILboolean ilLoadPnmL(const void *Lump, ILuint Size);
    00349 ILboolean ilSavePnm(ILconst_string FileName);
    00350 ILuint    ilSavePnmF(ILHANDLE File);
    00351 ILuint    ilSavePnmL(void *Lump, ILuint Size);
    00352 ILboolean ilIsValidPsd(ILconst_string FileName);
    00353 ILboolean ilIsValidPsdF(ILHANDLE File);
    00354 ILboolean ilIsValidPsdL(const void *Lump, ILuint Size);
    00355 ILboolean ilLoadPsd(ILconst_string FileName);
    00356 ILboolean ilLoadPsdF(ILHANDLE File);
    00357 ILboolean ilLoadPsdL(const void *Lump, ILuint Size);
    00358 ILboolean ilSavePsd(ILconst_string FileName);
    00359 ILuint    ilSavePsdF(ILHANDLE File);
    00360 ILuint    ilSavePsdL(void *Lump, ILuint Size);
    00361 ILboolean ilIsValidPsp(ILconst_string FileName);
    00362 ILboolean ilIsValidPspF(ILHANDLE File);
    00363 ILboolean ilIsValidPspL(const void *Lump, ILuint Size);
    00364 ILboolean ilLoadPsp(ILconst_string FileName);
    00365 ILboolean ilLoadPspF(ILHANDLE File);
    00366 ILboolean ilLoadPspL(const void *Lump, ILuint Size);
    00367 ILboolean ilLoadPxr(ILconst_string FileName);
    00368 ILboolean ilLoadPxrF(ILHANDLE File);
    00369 ILboolean ilLoadPxrL(const void *Lump, ILuint Size);
    00370 ILboolean ilLoadRaw(ILconst_string FileName);
    00371 ILboolean ilLoadRawF(ILHANDLE File);
    00372 ILboolean ilLoadRawL(const void *Lump, ILuint Size);
    00373 ILboolean ilSaveRaw(ILconst_string FileName);
    00374 ILuint    ilSaveRawF(ILHANDLE File);
    00375 ILuint    ilSaveRawL(void *Lump, ILuint Size);
    00376 ILboolean ilIsValidSgi(ILconst_string FileName);
    00377 ILboolean ilIsValidSgiF(ILHANDLE File);
    00378 ILboolean ilIsValidSgiL(const void *Lump, ILuint Size);
    00379 ILboolean ilLoadSgi(ILconst_string FileName);
    00380 ILboolean ilLoadSgiF(ILHANDLE File);
    00381 ILboolean ilLoadSgiL(const void *Lump, ILuint Size);
    00382 ILboolean ilSaveSgi(ILconst_string FileName);
    00383 ILuint    ilSaveSgiF(ILHANDLE File);
    00384 ILuint    ilSaveSgiL(void *Lump, ILuint Size);
    00385 ILboolean ilIsValidSun(ILconst_string FileName);
    00386 ILboolean ilIsValidSunF(ILHANDLE File);
    00387 ILboolean ilIsValidSunL(const void *Lump, ILuint Size);
    00388 ILboolean ilLoadSun(ILconst_string FileName);
    00389 ILboolean ilLoadSunF(ILHANDLE File);
    00390 ILboolean ilLoadSunL(const void *Lump, ILuint Size);
    00391 ILboolean ilIsValidTga(ILconst_string FileName);
    00392 ILboolean ilIsValidTgaF(ILHANDLE File);
    00393 ILboolean ilIsValidTgaL(const void *Lump, ILuint Size);
    00394 ILboolean ilLoadTarga(ILconst_string FileName);
    00395 ILboolean ilLoadTargaF(ILHANDLE File);
    00396 ILboolean ilLoadTargaL(const void *Lump, ILuint Size);
    00397 ILboolean ilSaveTarga(ILconst_string FileName);
    00398 ILuint    ilSaveTargaF(ILHANDLE File);
    00399 ILuint    ilSaveTargaL(void *Lump, ILuint Size);
    00400 ILboolean ilIsValidTiff(ILconst_string FileName);
    00401 ILboolean ilIsValidTiffF(ILHANDLE File);
    00402 ILboolean ilIsValidTiffL(const void *Lump, ILuint Size);
    00403 ILboolean ilLoadTiff(ILconst_string FileName);
    00404 ILboolean ilLoadTiffF(ILHANDLE File);
    00405 ILboolean ilLoadTiffL(const void *Lump, ILuint Size);
    00406 ILboolean ilSaveTiff(ILconst_string FileName);
    00407 ILuint    ilSaveTiffF(ILHANDLE File);
    00408 ILuint    ilSaveTiffL(void *Lump, ILuint Size);
    00409 ILboolean ilIsValidTpl(ILconst_string FileName);
    00410 ILboolean ilIsValidTplF(ILHANDLE File);
    00411 ILboolean ilIsValidTplL(const void *Lump, ILuint Size);
    00412 ILboolean ilLoadTpl(ILconst_string FileName);
    00413 ILboolean ilLoadTplF(ILHANDLE File);
    00414 ILboolean ilLoadTplL(const void *Lump, ILuint Size);
    00415 ILboolean ilIsValidVtf(ILconst_string FileName);
    00416 ILboolean ilIsValidVtfF(ILHANDLE File);
    00417 ILboolean ilIsValidVtfL(const void *Lump, ILuint Size);
    00418 ILboolean ilLoadVtf(ILconst_string FileName);
    00419 ILboolean ilLoadVtfF(ILHANDLE File);
    00420 ILboolean ilLoadVtfL(const void *Lump, ILuint Size);
    00421 ILboolean ilLoadWal(ILconst_string FileName);
    00422 ILboolean ilLoadWalF(ILHANDLE File);
    00423 ILboolean ilLoadWalL(const void *Lump, ILuint Size);
    00424 ILboolean ilLoadWbmp(ILconst_string FileName);
    00425 ILboolean ilLoadWbmpF(ILHANDLE File);
    00426 ILboolean ilLoadWbmpL(const void *Lump, ILuint Size);
    00427 ILboolean ilSaveWbmp(ILconst_string FileName);
    00428 ILuint    ilSaveWbmpF(ILHANDLE File);
    00429 ILuint    ilSaveWbmpL(void *Lump, ILuint Size);
    00430 ILboolean ilIsValidWdp(ILconst_string FileName);
    00431 ILboolean ilIsValidWdpF(ILHANDLE File);
    00432 ILboolean ilIsValidWdpL(const void *Lump, ILuint Size);
    00433 ILboolean ilLoadWdp(ILconst_string FileName);
    00434 ILboolean ilLoadWdpF(ILHANDLE File);
    00435 ILboolean ilLoadWdpL(const void *Lump, ILuint Size);
    00436 ILboolean ilIsValidXpm(ILconst_string FileName);
    00437 ILboolean ilIsValidXpmF(ILHANDLE File);
    00438 ILboolean ilIsValidXpmL(const void *Lump, ILuint Size);
    00439 ILboolean ilLoadXpm(ILconst_string FileName);
    00440 ILboolean ilLoadXpmF(ILHANDLE File);
    00441 ILboolean ilLoadXpmL(const void *Lump, ILuint Size);
    00442
    00443
    00444 // OpenEXR is written in C++, so we have to wrap this to avoid linker errors.
    00445 /*#ifndef IL_NO_EXR
    00446         #ifdef __cplusplus
    00447         extern "C" {
    00448         #endif
    00449                 ILboolean ilLoadExr(ILconst_string FileName);
    00450         #ifdef __cplusplus
    00451         }
    00452         #endif
    00453 #endif*/
    00454
    00455 //ILboolean ilLoadExr(ILconst_string FileName);
    00456
    00457
    00458 #ifdef __cplusplus
    00459 }
    00460 #endif
    00461
    00462 #endif//INTERNAL_H