00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef __il_h_
00015 #ifndef __IL_H__
00016
00017 #define __il_h_
00018 #define __IL_H__
00019
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053 #define IL_INLINE_ASM
00054
00055
00056
00057 #ifdef _WIN32
00058 #ifndef IL_USE_JPEGLIB_UNMODIFIED
00059 #define IL_USE_JPEGLIB_UNMODIFIED
00060 #endif
00061 #endif
00062
00063 #ifdef _WIN32_WCE
00064 #define IL_NO_GIF
00065 #define IL_NO_JPG
00066 #define IL_NO_MNG
00067 #define IL_NO_PNG
00068 #define IL_NO_TIF
00069 #define IL_NO_LCMS
00070 #endif//_WIN32_WCE
00071
00072 #ifdef DJGPP
00073 #define IL_NO_GIF
00074 #define IL_NO_JPG
00075 #define IL_NO_MNG
00076 #define IL_NO_PNG
00077 #define IL_NO_TIF
00078 #define IL_NO_LCMS
00079 #endif//DJGPP
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090 #include <stdio.h>
00091
00092 typedef unsigned int ILenum;
00093 typedef unsigned char ILboolean;
00094 typedef unsigned int ILbitfield;
00095 typedef char ILbyte;
00096 typedef short ILshort;
00097 typedef int ILint;
00098 typedef int ILsizei;
00099 typedef unsigned char ILubyte;
00100 typedef unsigned short ILushort;
00101 typedef unsigned int ILuint;
00102 typedef float ILfloat;
00103 typedef float ILclampf;
00104 typedef double ILdouble;
00105 typedef double ILclampd;
00106 typedef void ILvoid;
00107
00108 #ifdef _UNICODE
00109 #ifndef _WIN32_WCE
00110 #include <wchar.h>
00111 #endif
00112 typedef wchar_t* ILstring;
00113 #else
00114 typedef char* ILstring;
00115 #endif//_UNICODE
00116
00117
00118 #define IL_FALSE 0
00119 #define IL_TRUE 1
00120
00121
00122
00123 #define IL_COLOUR_INDEX 0x1900
00124 #define IL_COLOR_INDEX 0x1900
00125 #define IL_RGB 0x1907
00126 #define IL_RGBA 0x1908
00127 #define IL_BGR 0x80E0
00128 #define IL_BGRA 0x80E1
00129 #define IL_LUMINANCE 0x1909
00130 #define IL_LUMINANCE_ALPHA 0x190A
00131
00132
00133 #define IL_BYTE 0x1400
00134 #define IL_UNSIGNED_BYTE 0x1401
00135 #define IL_SHORT 0x1402
00136 #define IL_UNSIGNED_SHORT 0x1403
00137 #define IL_INT 0x1404
00138 #define IL_UNSIGNED_INT 0x1405
00139 #define IL_FLOAT 0x1406
00140 #define IL_DOUBLE 0x140A
00141
00142
00143 #define IL_VENDOR 0x1F00
00144 #define IL_LOAD_EXT 0x1F01
00145 #define IL_SAVE_EXT 0x1F02
00146
00147
00148
00149
00150
00151
00152 #define IL_VERSION_1_6_7 1
00153 #define IL_VERSION 167
00154
00155
00156
00157 #define IL_ORIGIN_BIT 0x00000001
00158 #define IL_FILE_BIT 0x00000002
00159 #define IL_PAL_BIT 0x00000004
00160 #define IL_FORMAT_BIT 0x00000008
00161 #define IL_TYPE_BIT 0x00000010
00162 #define IL_COMPRESS_BIT 0x00000020
00163 #define IL_LOADFAIL_BIT 0x00000040
00164 #define IL_FORMAT_SPECIFIC_BIT 0x00000080
00165 #define IL_ALL_ATTRIB_BITS 0x000FFFFF
00166
00167
00168
00169 #define IL_PAL_NONE 0x0400
00170 #define IL_PAL_RGB24 0x0401
00171 #define IL_PAL_RGB32 0x0402
00172 #define IL_PAL_RGBA32 0x0403
00173 #define IL_PAL_BGR24 0x0404
00174 #define IL_PAL_BGR32 0x0405
00175 #define IL_PAL_BGRA32 0x0406
00176
00177
00178
00179 #define IL_TYPE_UNKNOWN 0x0000
00180 #define IL_BMP 0x0420
00181 #define IL_CUT 0x0421
00182 #define IL_DOOM 0x0422
00183 #define IL_DOOM_FLAT 0x0423
00184 #define IL_ICO 0x0424
00185 #define IL_JPG 0x0425
00186 #define IL_JFIF 0x0425
00187 #define IL_LBM 0x0426
00188 #define IL_PCD 0x0427
00189 #define IL_PCX 0x0428
00190 #define IL_PIC 0x0429
00191 #define IL_PNG 0x042A
00192 #define IL_PNM 0x042B
00193 #define IL_SGI 0x042C
00194 #define IL_TGA 0x042D
00195 #define IL_TIF 0x042E
00196 #define IL_CHEAD 0x042F
00197 #define IL_RAW 0x0430
00198 #define IL_MDL 0x0431
00199 #define IL_WAL 0x0432
00200 #define IL_LIF 0x0434
00201 #define IL_MNG 0x0435
00202 #define IL_JNG 0x0435
00203 #define IL_GIF 0x0436
00204 #define IL_DDS 0x0437
00205 #define IL_DCX 0x0438
00206 #define IL_PSD 0x0439
00207 #define IL_EXIF 0x043A
00208 #define IL_PSP 0x043B
00209 #define IL_PIX 0x043C
00210 #define IL_PXR 0x043D
00211 #define IL_XPM 0x043E
00212
00213 #define IL_JASC_PAL 0x0475
00214
00215
00216
00217 #define IL_NO_ERROR 0x0000
00218 #define IL_INVALID_ENUM 0x0501
00219 #define IL_OUT_OF_MEMORY 0x0502
00220 #define IL_FORMAT_NOT_SUPPORTED 0x0503
00221 #define IL_INTERNAL_ERROR 0x0504
00222 #define IL_INVALID_VALUE 0x0505
00223 #define IL_ILLEGAL_OPERATION 0x0506
00224 #define IL_ILLEGAL_FILE_VALUE 0x0507
00225 #define IL_INVALID_FILE_HEADER 0x0508
00226 #define IL_INVALID_PARAM 0x0509
00227 #define IL_COULD_NOT_OPEN_FILE 0x050A
00228 #define IL_INVALID_EXTENSION 0x050B
00229 #define IL_FILE_ALREADY_EXISTS 0x050C
00230 #define IL_OUT_FORMAT_SAME 0x050D
00231 #define IL_STACK_OVERFLOW 0x050E
00232 #define IL_STACK_UNDERFLOW 0x050F
00233 #define IL_INVALID_CONVERSION 0x0510
00234 #define IL_BAD_DIMENSIONS 0x0511
00235 #define IL_FILE_READ_ERROR 0x0512 // 05/12/2002: Addition by Sam.
00236 #define IL_FILE_WRITE_ERROR 0x0512
00237
00238 #define IL_LIB_GIF_ERROR 0x05E1
00239 #define IL_LIB_JPEG_ERROR 0x05E2
00240 #define IL_LIB_PNG_ERROR 0x05E3
00241 #define IL_LIB_TIFF_ERROR 0x05E4
00242 #define IL_LIB_MNG_ERROR 0x05E5
00243 #define IL_UNKNOWN_ERROR 0x05FF
00244
00245
00246
00247 #define IL_ORIGIN_SET 0x0600
00248 #define IL_ORIGIN_LOWER_LEFT 0x0601
00249 #define IL_ORIGIN_UPPER_LEFT 0x0602
00250 #define IL_ORIGIN_MODE 0x0603
00251
00252
00253
00254 #define IL_FORMAT_SET 0x0610
00255 #define IL_FORMAT_MODE 0x0611
00256 #define IL_TYPE_SET 0x0612
00257 #define IL_TYPE_MODE 0x0613
00258
00259
00260
00261 #define IL_FILE_OVERWRITE 0x0620
00262 #define IL_FILE_MODE 0x0621
00263
00264
00265
00266 #define IL_CONV_PAL 0x0630
00267
00268
00269
00270 #define IL_DEFAULT_ON_FAIL 0x0632
00271
00272
00273
00274 #define IL_USE_KEY_COLOUR 0x0635
00275 #define IL_USE_KEY_COLOR 0x0635
00276
00277
00278
00279 #define IL_SAVE_INTERLACED 0x0639
00280 #define IL_INTERLACE_MODE 0x063A
00281
00282
00283
00284 #define IL_QUANTIZATION_MODE 0x0640
00285 #define IL_WU_QUANT 0x0641
00286 #define IL_NEU_QUANT 0x0642
00287 #define IL_NEU_QUANT_SAMPLE 0x0643
00288 #define IL_MAX_QUANT_INDEXS 0x0644 //XIX : ILint : Maximum number of colors to reduce to, default of 256. and has a range of 2-256
00289
00290
00291
00292 #define IL_FASTEST 0x0660
00293 #define IL_LESS_MEM 0x0661
00294 #define IL_DONT_CARE 0x0662
00295 #define IL_MEM_SPEED_HINT 0x0665
00296 #define IL_USE_COMPRESSION 0x0666
00297 #define IL_NO_COMPRESSION 0x0667
00298 #define IL_COMPRESSION_HINT 0x0668
00299
00300
00301
00302 #define IL_SUB_NEXT 0x0680
00303 #define IL_SUB_MIPMAP 0x0681
00304 #define IL_SUB_LAYER 0x0682
00305
00306
00307
00308 #define IL_COMPRESS_MODE 0x0700
00309 #define IL_COMPRESS_NONE 0x0701
00310 #define IL_COMPRESS_RLE 0x0702
00311 #define IL_COMPRESS_LZO 0x0703
00312 #define IL_COMPRESS_ZLIB 0x0704
00313
00314
00315
00316 #define IL_TGA_CREATE_STAMP 0x0710
00317 #define IL_JPG_QUALITY 0x0711
00318 #define IL_PNG_INTERLACE 0x0712
00319 #define IL_TGA_RLE 0x0713
00320 #define IL_BMP_RLE 0x0714
00321 #define IL_SGI_RLE 0x0715
00322 #define IL_TGA_ID_STRING 0x0717
00323 #define IL_TGA_AUTHNAME_STRING 0x0718
00324 #define IL_TGA_AUTHCOMMENT_STRING 0x0719
00325 #define IL_PNG_AUTHNAME_STRING 0x071A
00326 #define IL_PNG_TITLE_STRING 0x071B
00327 #define IL_PNG_DESCRIPTION_STRING 0x071C
00328 #define IL_TIF_DESCRIPTION_STRING 0x071D
00329 #define IL_TIF_HOSTCOMPUTER_STRING 0x071E
00330 #define IL_TIF_DOCUMENTNAME_STRING 0x071F
00331 #define IL_TIF_AUTHNAME_STRING 0x0720
00332 #define IL_JPG_SAVE_FORMAT 0x0721
00333 #define IL_CHEAD_HEADER_STRING 0x0722
00334 #define IL_PCD_PICNUM 0x0723
00335
00336 #define IL_PNG_ALPHA_INDEX 0x0724 //XIX : ILint : the color in the pallete at this index value (0-255) is considered transparent, -1 for no trasparent color
00337
00338
00339 #define IL_DXTC_FORMAT 0x0705
00340 #define IL_DXT1 0x0706
00341 #define IL_DXT2 0x0707
00342 #define IL_DXT3 0x0708
00343 #define IL_DXT4 0x0709
00344 #define IL_DXT5 0x070A
00345 #define IL_DXT_NO_COMP 0x070B
00346 #define IL_KEEP_DXTC_DATA 0x070C
00347 #define IL_DXTC_DATA_FORMAT 0x070D
00348
00349
00350
00351 #define IL_CUBEMAP_POSITIVEX 0x00000400
00352 #define IL_CUBEMAP_NEGATIVEX 0x00000800
00353 #define IL_CUBEMAP_POSITIVEY 0x00001000
00354 #define IL_CUBEMAP_NEGATIVEY 0x00002000
00355 #define IL_CUBEMAP_POSITIVEZ 0x00004000
00356 #define IL_CUBEMAP_NEGATIVEZ 0x00008000
00357
00358
00359
00360 #define IL_VERSION_NUM 0x0DE2
00361 #define IL_IMAGE_WIDTH 0x0DE4
00362 #define IL_IMAGE_HEIGHT 0x0DE5
00363 #define IL_IMAGE_DEPTH 0x0DE6
00364 #define IL_IMAGE_SIZE_OF_DATA 0x0DE7
00365 #define IL_IMAGE_BPP 0x0DE8
00366 #define IL_IMAGE_BYTES_PER_PIXEL 0x0DE8
00367 #define IL_IMAGE_BITS_PER_PIXEL 0x0DE9
00368 #define IL_IMAGE_FORMAT 0x0DEA
00369 #define IL_IMAGE_TYPE 0x0DEB
00370 #define IL_PALETTE_TYPE 0x0DEC
00371 #define IL_PALETTE_SIZE 0x0DED
00372 #define IL_PALETTE_BPP 0x0DEE
00373 #define IL_PALETTE_NUM_COLS 0x0DEF
00374 #define IL_PALETTE_BASE_TYPE 0x0DF0
00375 #define IL_NUM_IMAGES 0x0DF1
00376 #define IL_NUM_MIPMAPS 0x0DF2
00377 #define IL_NUM_LAYERS 0x0DF3
00378 #define IL_ACTIVE_IMAGE 0x0DF4
00379 #define IL_ACTIVE_MIPMAP 0x0DF5
00380 #define IL_ACTIVE_LAYER 0x0DF6
00381 #define IL_CUR_IMAGE 0x0DF7
00382 #define IL_IMAGE_DURATION 0x0DF8
00383 #define IL_IMAGE_PLANESIZE 0x0DF9
00384 #define IL_IMAGE_BPC 0x0DFA
00385 #define IL_IMAGE_OFFX 0x0DFB
00386 #define IL_IMAGE_OFFY 0x0DFC
00387 #define IL_IMAGE_CUBEFLAGS 0x0DFD
00388 #define IL_IMAGE_ORIGIN 0x0DFE
00389
00390
00391
00392
00393
00394
00395
00396 #if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__) || defined(__LCC__)
00397 #define ILAPIENTRY __stdcall
00398 #define IL_PACKSTRUCT
00399
00400 #elif defined( __GNUC__ )
00401
00402
00403 #define ILAPIENTRY
00404 #define IL_PACKSTRUCT __attribute__ ((packed))
00405 #else
00406 #define ILAPIENTRY
00407 #define IL_PACKSTRUCT
00408 #endif
00409
00410
00411 #if defined(__LCC__)
00412 #define ILAPI __stdcall
00413 #elif defined(_WIN32) //changed 20031221 to fix bug 840421
00414 #ifdef IL_STATIC_LIB
00415 #define ILAPI
00416 #else
00417 #ifdef _IL_BUILD_LIBRARY
00418 #define ILAPI __declspec(dllexport)
00419 #else
00420 #define ILAPI __declspec(dllimport)
00421 #endif
00422 #endif
00423 #elif __APPLE__
00424 #define ILAPI extern
00425 #else
00426 #define ILAPI
00427 #endif
00428
00429
00430 #define IL_SEEK_SET 0
00431 #define IL_SEEK_CUR 1
00432 #define IL_SEEK_END 2
00433 #define IL_EOF -1
00434
00435
00436
00437 typedef void* ILHANDLE;
00438 typedef ILvoid (ILAPIENTRY *fCloseRProc)(ILHANDLE);
00439 typedef ILboolean (ILAPIENTRY *fEofProc) (ILHANDLE);
00440 typedef ILint (ILAPIENTRY *fGetcProc) (ILHANDLE);
00441 typedef ILHANDLE (ILAPIENTRY *fOpenRProc) (const ILstring);
00442 typedef ILint (ILAPIENTRY *fReadProc) (void*, ILuint, ILuint, ILHANDLE);
00443 typedef ILint (ILAPIENTRY *fSeekRProc) (ILHANDLE, ILint, ILint);
00444 typedef ILint (ILAPIENTRY *fTellRProc) (ILHANDLE);
00445
00446
00447 typedef ILvoid (ILAPIENTRY *fCloseWProc)(ILHANDLE);
00448 typedef ILHANDLE (ILAPIENTRY *fOpenWProc) (const ILstring);
00449 typedef ILint (ILAPIENTRY *fPutcProc) (ILubyte, ILHANDLE);
00450 typedef ILint (ILAPIENTRY *fSeekWProc) (ILHANDLE, ILint, ILint);
00451 typedef ILint (ILAPIENTRY *fTellWProc) (ILHANDLE);
00452 typedef ILint (ILAPIENTRY *fWriteProc) (const void*, ILuint, ILuint, ILHANDLE);
00453
00454
00455 typedef ILvoid* (ILAPIENTRY *mAlloc)(ILuint);
00456 typedef ILvoid (ILAPIENTRY *mFree) (ILvoid*);
00457
00458
00459 typedef ILenum (ILAPIENTRY *IL_LOADPROC)(const ILstring);
00460 typedef ILenum (ILAPIENTRY *IL_SAVEPROC)(const ILstring);
00461
00462
00463
00464 ILAPI ILboolean ILAPIENTRY ilActiveImage(ILuint Number);
00465 ILAPI ILboolean ILAPIENTRY ilActiveLayer(ILuint Number);
00466 ILAPI ILboolean ILAPIENTRY ilActiveMipmap(ILuint Number);
00467 ILAPI ILboolean ILAPIENTRY ilApplyPal(const ILstring FileName);
00468 ILAPI ILboolean ILAPIENTRY ilApplyProfile(const ILstring InProfile, const ILstring OutProfile);
00469 ILAPI ILvoid ILAPIENTRY ilBindImage(ILuint Image);
00470 ILAPI ILboolean ILAPIENTRY ilBlit(ILuint Source, ILint DestX, ILint DestY, ILint DestZ, ILuint SrcX, ILuint SrcY, ILuint SrcZ, ILuint Width, ILuint Height, ILuint Depth);
00471 ILAPI ILvoid ILAPIENTRY ilClearColour(ILclampf Red, ILclampf Green, ILclampf Blue, ILclampf Alpha);
00472 ILAPI ILboolean ILAPIENTRY ilClearImage(ILvoid);
00473 ILAPI ILuint ILAPIENTRY ilCloneCurImage(ILvoid);
00474 ILAPI ILboolean ILAPIENTRY ilCompressFunc(ILenum Mode);
00475 ILAPI ILboolean ILAPIENTRY ilConvertImage(ILenum DestFormat, ILenum DestType);
00476 ILAPI ILboolean ILAPIENTRY ilConvertPal(ILenum DestFormat);
00477 ILAPI ILboolean ILAPIENTRY ilCopyImage(ILuint Src);
00478 ILAPI ILuint ILAPIENTRY ilCopyPixels(ILuint XOff, ILuint YOff, ILuint ZOff, ILuint Width, ILuint Height, ILuint Depth, ILenum Format, ILenum Type, ILvoid *Data);
00479 ILAPI ILuint ILAPIENTRY ilCreateSubImage(ILenum Type, ILuint Num);
00480 ILAPI ILboolean ILAPIENTRY ilDefaultImage(ILvoid);
00481 ILAPI ILvoid ILAPIENTRY ilDeleteImages(ILsizei Num, const ILuint *Images);
00482 ILAPI ILboolean ILAPIENTRY ilDisable(ILenum Mode);
00483 ILAPI ILboolean ILAPIENTRY ilEnable(ILenum Mode);
00484 ILAPI ILboolean ILAPIENTRY ilFormatFunc(ILenum Mode);
00485 ILAPI ILvoid ILAPIENTRY ilGenImages(ILsizei Num, ILuint *Images);
00486 ILAPI ILubyte* ILAPIENTRY ilGetAlpha(ILenum Type);
00487 ILAPI ILvoid ILAPIENTRY ilModAlpha( ILint AlphaValue );
00488 ILAPI ILvoid ILAPIENTRY ilSetAlpha( ILuint AlphaValue );
00489 ILAPI ILboolean ILAPIENTRY ilGetBoolean(ILenum Mode);
00490 ILAPI ILvoid ILAPIENTRY ilGetBooleanv(ILenum Mode, ILboolean *Param);
00491 ILAPI ILubyte* ILAPIENTRY ilGetData(ILvoid);
00492 ILAPI ILuint ILAPIENTRY ilGetDXTCData(ILvoid *Buffer, ILuint BufferSize, ILenum DXTCFormat);
00493 ILAPI ILenum ILAPIENTRY ilGetError(ILvoid);
00494 ILAPI ILint ILAPIENTRY ilGetInteger(ILenum Mode);
00495 ILAPI ILvoid ILAPIENTRY ilGetIntegerv(ILenum Mode, ILint *Param);
00496 ILAPI ILuint ILAPIENTRY ilGetLumpPos(ILvoid);
00497 ILAPI ILubyte* ILAPIENTRY ilGetPalette(ILvoid);
00498 ILAPI const ILstring ILAPIENTRY ilGetString(ILenum StringName);
00499 ILAPI ILvoid ILAPIENTRY ilHint(ILenum Target, ILenum Mode);
00500 ILAPI ILvoid ILAPIENTRY ilInit(ILvoid);
00501 ILAPI ILboolean ILAPIENTRY ilIsDisabled(ILenum Mode);
00502 ILAPI ILboolean ILAPIENTRY ilIsEnabled(ILenum Mode);
00503 ILAPI ILboolean ILAPIENTRY ilIsImage(ILuint Image);
00504 ILAPI ILboolean ILAPIENTRY ilIsValid(ILenum Type, const ILstring FileName);
00505 ILAPI ILboolean ILAPIENTRY ilIsValidF(ILenum Type, ILHANDLE File);
00506 ILAPI ILboolean ILAPIENTRY ilIsValidL(ILenum Type, ILvoid *Lump, ILuint Size);
00507 ILAPI ILvoid ILAPIENTRY ilKeyColour(ILclampf Red, ILclampf Green, ILclampf Blue, ILclampf Alpha);
00508 ILAPI ILboolean ILAPIENTRY ilLoad(ILenum Type, const ILstring FileName);
00509 ILAPI ILboolean ILAPIENTRY ilLoadF(ILenum Type, ILHANDLE File);
00510 ILAPI ILboolean ILAPIENTRY ilLoadImage(const ILstring FileName);
00511 ILAPI ILboolean ILAPIENTRY ilLoadL(ILenum Type, ILvoid *Lump, ILuint Size);
00512 ILAPI ILboolean ILAPIENTRY ilLoadPal(const ILstring FileName);
00513 ILAPI ILboolean ILAPIENTRY ilOriginFunc(ILenum Mode);
00514 ILAPI ILboolean ILAPIENTRY ilOverlayImage(ILuint Source, ILint XCoord, ILint YCoord, ILint ZCoord);
00515 ILAPI ILvoid ILAPIENTRY ilPopAttrib(ILvoid);
00516 ILAPI ILvoid ILAPIENTRY ilPushAttrib(ILuint Bits);
00517 ILAPI ILvoid ILAPIENTRY ilRegisterFormat(ILenum Format);
00518 ILAPI ILboolean ILAPIENTRY ilRegisterLoad(const ILstring Ext, IL_LOADPROC Load);
00519 ILAPI ILboolean ILAPIENTRY ilRegisterMipNum(ILuint Num);
00520 ILAPI ILboolean ILAPIENTRY ilRegisterNumImages(ILuint Num);
00521 ILAPI ILvoid ILAPIENTRY ilRegisterOrigin(ILenum Origin);
00522 ILAPI ILvoid ILAPIENTRY ilRegisterPal(ILvoid *Pal, ILuint Size, ILenum Type);
00523 ILAPI ILboolean ILAPIENTRY ilRegisterSave(const ILstring Ext, IL_SAVEPROC Save);
00524 ILAPI ILvoid ILAPIENTRY ilRegisterType(ILenum Type);
00525 ILAPI ILboolean ILAPIENTRY ilRemoveLoad(const ILstring Ext);
00526 ILAPI ILboolean ILAPIENTRY ilRemoveSave(const ILstring Ext);
00527 ILAPI ILvoid ILAPIENTRY ilResetMemory(ILvoid);
00528 ILAPI ILvoid ILAPIENTRY ilResetRead(ILvoid);
00529 ILAPI ILvoid ILAPIENTRY ilResetWrite(ILvoid);
00530 ILAPI ILboolean ILAPIENTRY ilSave(ILenum Type, const ILstring FileName);
00531 ILAPI ILuint ILAPIENTRY ilSaveF(ILenum Type, ILHANDLE File);
00532 ILAPI ILboolean ILAPIENTRY ilSaveImage(const ILstring FileName);
00533 ILAPI ILuint ILAPIENTRY ilSaveL(ILenum Type, ILvoid *Lump, ILuint Size);
00534 ILAPI ILboolean ILAPIENTRY ilSavePal(const ILstring FileName);
00535 ILAPI ILboolean ILAPIENTRY ilSetData(ILvoid *Data);
00536 ILAPI ILboolean ILAPIENTRY ilSetDuration(ILuint Duration);
00537 ILAPI ILvoid ILAPIENTRY ilSetInteger(ILenum Mode, ILint Param);
00538 ILAPI ILvoid ILAPIENTRY ilSetMemory(mAlloc, mFree);
00539 ILAPI ILvoid ILAPIENTRY ilSetPixels(ILint XOff, ILint YOff, ILint ZOff, ILuint Width, ILuint Height, ILuint Depth, ILenum Format, ILenum Type, ILvoid *Data);
00540 ILAPI ILvoid ILAPIENTRY ilSetRead(fOpenRProc, fCloseRProc, fEofProc, fGetcProc, fReadProc, fSeekRProc, fTellRProc);
00541 ILAPI ILvoid ILAPIENTRY ilSetString(ILenum Mode, const char *String);
00542 ILAPI ILvoid ILAPIENTRY ilSetWrite(fOpenWProc, fCloseWProc, fPutcProc, fSeekWProc, fTellWProc, fWriteProc);
00543 ILAPI ILvoid ILAPIENTRY ilShutDown(ILvoid);
00544 ILAPI ILboolean ILAPIENTRY ilTexImage(ILuint Width, ILuint Height, ILuint Depth, ILubyte Bpp, ILenum Format, ILenum Type, ILvoid *Data);
00545 ILAPI ILboolean ILAPIENTRY ilTypeFunc(ILenum Mode);
00546
00547 ILAPI ILboolean ILAPIENTRY ilLoadData(const ILstring FileName, ILuint Width, ILuint Height, ILuint Depth, ILubyte Bpp);
00548 ILAPI ILboolean ILAPIENTRY ilLoadDataF(ILHANDLE File, ILuint Width, ILuint Height, ILuint Depth, ILubyte Bpp);
00549 ILAPI ILboolean ILAPIENTRY ilLoadDataL(ILvoid *Lump, ILuint Size, ILuint Width, ILuint Height, ILuint Depth, ILubyte Bpp);
00550 ILAPI ILboolean ILAPIENTRY ilSaveData(const ILstring FileName);
00551
00552 ILAPI ILboolean ILAPIENTRY ilLoadFromJpegStruct(ILvoid* JpegDecompressorPtr);
00553 ILAPI ILboolean ILAPIENTRY ilSaveFromJpegStruct(ILvoid* JpegCompressorPtr);
00554
00555
00556 #define ilClearColor ilClearColour
00557 #define ilKeyColor ilKeyColour
00558
00559
00560 #ifdef __cplusplus
00561 }
00562 #endif
00563
00564 #endif // __IL_H__
00565 #endif // __il_h__
00566
00567 #ifdef ALTIVEC
00568 #define imemclear(x,y) vec_memclear(x,y);
00569 #else
00570 #define imemclear(x,y) memset(x,0,y);
00571 #endif
00572
00573 #ifdef ALTIVEC
00574 void vec_memclear( ILvoid *, ILuint );
00575 #endif