| il.h | | il.h | |
| //-------------------------------------------------------------------------
---- | | //-------------------------------------------------------------------------
---- | |
| // | | // | |
| // ImageLib Sources | | // ImageLib Sources | |
| // Copyright (C) 2000-2002 by Denton Woods | | // Copyright (C) 2000-2002 by Denton Woods | |
|
| // Last modified: 06/11/2002 <--Y2K Compliant! =] | | // Last modified: 06/23/2002 <--Y2K Compliant! =] | |
| // | | // | |
|
| // Filename: il/il.h | | // Filename: IL/il.h | |
| // | | // | |
| // Description: The main include file for DevIL | | // Description: The main include file for DevIL | |
| // | | // | |
| //-------------------------------------------------------------------------
---- | | //-------------------------------------------------------------------------
---- | |
| | | | |
| #ifndef __il_h_ | | #ifndef __il_h_ | |
| #ifndef __IL_H__ | | #ifndef __IL_H__ | |
| | | | |
| #define __il_h_ | | #define __il_h_ | |
| #define __IL_H__ | | #define __IL_H__ | |
| | | | |
| skipping to change at line 151 | | skipping to change at line 151 | |
| #define IL_BYTE
0x1400 | | #define IL_BYTE
0x1400 | |
| #define IL_UNSIGNED_BYTE 0x1401 | | #define IL_UNSIGNED_BYTE 0x1401 | |
| #define IL_SHORT 0x14
02 | | #define IL_SHORT 0x14
02 | |
| #define IL_UNSIGNED_SHORT 0x1403 | | #define IL_UNSIGNED_SHORT 0x1403 | |
| #define IL_INT 0x14
04 | | #define IL_INT 0x14
04 | |
| #define IL_UNSIGNED_INT 0x14
05 | | #define IL_UNSIGNED_INT 0x14
05 | |
| #define IL_FLOAT 0x14
06 | | #define IL_FLOAT 0x14
06 | |
| #define IL_DOUBLE 0x14
0A | | #define IL_DOUBLE 0x14
0A | |
| | | | |
| #define IL_VENDOR 0x1F
00 | | #define IL_VENDOR 0x1F
00 | |
|
| | | #define IL_LOAD_EXT 0x1F | |
| | | 01 | |
| | | #define IL_SAVE_EXT 0x1F | |
| | | 02 | |
| | | | |
| // | | // | |
| // IL-specific #define's | | // IL-specific #define's | |
| // | | // | |
| | | | |
|
| #define IL_VERSION_1_5_6 1 | | #define IL_VERSION_1_6_1 1 | |
| #define IL_VERSION 156 | | #define IL_VERSION 161 | |
| | | | |
| // Attribute Bits | | // Attribute Bits | |
| #define IL_ORIGIN_BIT 0x00000001 | | #define IL_ORIGIN_BIT 0x00000001 | |
| #define IL_FILE_BIT 0x00
000002 | | #define IL_FILE_BIT 0x00
000002 | |
| #define IL_PAL_BIT 0x00
000004 | | #define IL_PAL_BIT 0x00
000004 | |
| #define IL_FORMAT_BIT 0x00000008 | | #define IL_FORMAT_BIT 0x00000008 | |
| #define IL_TYPE_BIT 0x00
000010 | | #define IL_TYPE_BIT 0x00
000010 | |
| #define IL_COMPRESS_BIT 0x00
000020 | | #define IL_COMPRESS_BIT 0x00
000020 | |
| #define IL_LOADFAIL_BIT 0x00
000040 | | #define IL_LOADFAIL_BIT 0x00
000040 | |
| #define IL_FORMAT_SPECIFIC_BIT 0x00000080 | | #define IL_FORMAT_SPECIFIC_BIT 0x00000080 | |
| | | | |
| skipping to change at line 236 | | skipping to change at line 238 | |
| #define IL_INVALID_PARAM 0x0509 | | #define IL_INVALID_PARAM 0x0509 | |
| #define IL_COULD_NOT_OPEN_FILE 0x050A | | #define IL_COULD_NOT_OPEN_FILE 0x050A | |
| #define IL_INVALID_EXTENSION 0x050B | | #define IL_INVALID_EXTENSION 0x050B | |
| #define IL_FILE_ALREADY_EXISTS 0x050C | | #define IL_FILE_ALREADY_EXISTS 0x050C | |
| #define IL_OUT_FORMAT_SAME 0x050D | | #define IL_OUT_FORMAT_SAME 0x050D | |
| #define IL_STACK_OVERFLOW 0x050E | | #define IL_STACK_OVERFLOW 0x050E | |
| #define IL_STACK_UNDERFLOW 0x050F | | #define IL_STACK_UNDERFLOW 0x050F | |
| #define IL_INVALID_CONVERSION 0x0510 | | #define IL_INVALID_CONVERSION 0x0510 | |
| #define IL_BAD_DIMENSIONS 0x0511 | | #define IL_BAD_DIMENSIONS 0x0511 | |
| #define IL_FILE_READ_ERROR 0x0512 // 0
5/12/2002: Addition by Sam. | | #define IL_FILE_READ_ERROR 0x0512 // 0
5/12/2002: Addition by Sam. | |
|
| | | #define IL_FILE_WRITE_ERROR 0x0512 | |
| | | | |
| #define IL_LIB_GIF_ERROR 0x05E1 | | #define IL_LIB_GIF_ERROR 0x05E1 | |
| #define IL_LIB_JPEG_ERROR 0x05E2 | | #define IL_LIB_JPEG_ERROR 0x05E2 | |
| #define IL_LIB_PNG_ERROR 0x05E3 | | #define IL_LIB_PNG_ERROR 0x05E3 | |
| #define IL_LIB_TIFF_ERROR 0x05E4 | | #define IL_LIB_TIFF_ERROR 0x05E4 | |
| #define IL_LIB_MNG_ERROR 0x05E5 | | #define IL_LIB_MNG_ERROR 0x05E5 | |
| #define IL_UNKNOWN_ERROR 0x05FF | | #define IL_UNKNOWN_ERROR 0x05FF | |
| | | | |
| // Origin Definitions | | // Origin Definitions | |
| #define IL_ORIGIN_SET 0x0600 | | #define IL_ORIGIN_SET 0x0600 | |
| | | | |
| skipping to change at line 444 | | skipping to change at line 447 | |
| typedef ILenum (ILAPIENTRY *IL_LOADPROC)(const ILstring); | | typedef ILenum (ILAPIENTRY *IL_LOADPROC)(const ILstring); | |
| typedef ILenum (ILAPIENTRY *IL_SAVEPROC)(const ILstring); | | typedef ILenum (ILAPIENTRY *IL_SAVEPROC)(const ILstring); | |
| | | | |
| // ImageLib Functions | | // ImageLib Functions | |
| ILAPI ILboolean ILAPIENTRY ilActiveImage(ILuint Number); | | ILAPI ILboolean ILAPIENTRY ilActiveImage(ILuint Number); | |
| ILAPI ILboolean ILAPIENTRY ilActiveLayer(ILuint Number); | | ILAPI ILboolean ILAPIENTRY ilActiveLayer(ILuint Number); | |
| ILAPI ILboolean ILAPIENTRY ilActiveMipmap(ILuint Number); | | ILAPI ILboolean ILAPIENTRY ilActiveMipmap(ILuint Number); | |
| ILAPI ILboolean ILAPIENTRY ilApplyPal(const ILstring FileNam
e); | | ILAPI ILboolean ILAPIENTRY ilApplyPal(const ILstring FileNam
e); | |
| ILAPI ILboolean ILAPIENTRY ilApplyProfile(const ILstring InP
rofile, const ILstring OutProfile); | | ILAPI ILboolean ILAPIENTRY ilApplyProfile(const ILstring InP
rofile, const ILstring OutProfile); | |
| ILAPI ILvoid ILAPIENTRY ilBindImage(ILuint Image); | | ILAPI ILvoid ILAPIENTRY ilBindImage(ILuint Image); | |
|
| ILAPI ILboolean ILAPIENTRY ilBlit(ILuint Src, ILint DestX, I
Lint DestY, ILint DestZ, ILuint SrcX, ILuint SrcY, ILuint SrcZ, ILuint Widt
h, ILuint Height, ILuint Depth); | | ILAPI ILboolean ILAPIENTRY ilBlit(ILuint Source, ILint DestX
, ILint DestY, ILint DestZ, ILuint SrcX, ILuint SrcY, ILuint SrcZ, ILuint W
idth, ILuint Height, ILuint Depth); | |
| ILAPI ILvoid ILAPIENTRY ilClearColour(ILclampf Red, ILclampf Gree
n, ILclampf Blue, ILclampf Alpha); | | ILAPI ILvoid ILAPIENTRY ilClearColour(ILclampf Red, ILclampf Gree
n, ILclampf Blue, ILclampf Alpha); | |
| ILAPI ILboolean ILAPIENTRY ilClearImage(ILvoid); | | ILAPI ILboolean ILAPIENTRY ilClearImage(ILvoid); | |
| ILAPI ILuint ILAPIENTRY ilCloneCurImage(ILvoid); | | ILAPI ILuint ILAPIENTRY ilCloneCurImage(ILvoid); | |
| ILAPI ILboolean ILAPIENTRY ilCompressFunc(ILenum Mode); | | ILAPI ILboolean ILAPIENTRY ilCompressFunc(ILenum Mode); | |
| ILAPI ILboolean ILAPIENTRY ilConvertImage(ILenum DestFormat,
ILenum DestType); | | ILAPI ILboolean ILAPIENTRY ilConvertImage(ILenum DestFormat,
ILenum DestType); | |
| ILAPI ILboolean ILAPIENTRY ilConvertPal(ILenum DestFormat); | | ILAPI ILboolean ILAPIENTRY ilConvertPal(ILenum DestFormat); | |
| ILAPI ILboolean ILAPIENTRY ilCopyImage(ILuint Src); | | ILAPI ILboolean ILAPIENTRY ilCopyImage(ILuint Src); | |
| ILAPI ILuint ILAPIENTRY ilCopyPixels(ILuint XOff, ILuint YOff, IL
uint ZOff, ILuint Width, ILuint Height, ILuint Depth, ILenum Format, ILenum
Type, ILvoid *Data); | | ILAPI ILuint ILAPIENTRY ilCopyPixels(ILuint XOff, ILuint YOff, IL
uint ZOff, ILuint Width, ILuint Height, ILuint Depth, ILenum Format, ILenum
Type, ILvoid *Data); | |
| ILAPI ILuint ILAPIENTRY ilCreateSubImage(ILenum Type, ILuint Num)
; | | ILAPI ILuint ILAPIENTRY ilCreateSubImage(ILenum Type, ILuint Num)
; | |
| ILAPI ILboolean ILAPIENTRY ilDefaultImage(ILvoid); | | ILAPI ILboolean ILAPIENTRY ilDefaultImage(ILvoid); | |
| | | | |
| skipping to change at line 470 | | skipping to change at line 473 | |
| ILAPI ILubyte* ILAPIENTRY ilGetAlpha(ILenum Type); | | ILAPI ILubyte* ILAPIENTRY ilGetAlpha(ILenum Type); | |
| ILAPI ILboolean ILAPIENTRY ilGetBoolean(ILenum Mode); | | ILAPI ILboolean ILAPIENTRY ilGetBoolean(ILenum Mode); | |
| ILAPI ILvoid ILAPIENTRY ilGetBooleanv(ILenum Mode, ILboolean *Par
am); | | ILAPI ILvoid ILAPIENTRY ilGetBooleanv(ILenum Mode, ILboolean *Par
am); | |
| ILAPI ILubyte* ILAPIENTRY ilGetData(ILvoid); | | ILAPI ILubyte* ILAPIENTRY ilGetData(ILvoid); | |
| ILAPI ILuint ILAPIENTRY ilGetDXTCData(ILvoid *Buffer, ILuint Buff
erSize, ILenum DXTCFormat); | | ILAPI ILuint ILAPIENTRY ilGetDXTCData(ILvoid *Buffer, ILuint Buff
erSize, ILenum DXTCFormat); | |
| ILAPI ILenum ILAPIENTRY ilGetError(ILvoid); | | ILAPI ILenum ILAPIENTRY ilGetError(ILvoid); | |
| ILAPI ILint ILAPIENTRY ilGetInteger(ILenum Mode); | | ILAPI ILint ILAPIENTRY ilGetInteger(ILenum Mode); | |
| ILAPI ILvoid ILAPIENTRY ilGetIntegerv(ILenum Mode, ILint *Param); | | ILAPI ILvoid ILAPIENTRY ilGetIntegerv(ILenum Mode, ILint *Param); | |
| ILAPI ILuint ILAPIENTRY ilGetLumpPos(ILvoid); | | ILAPI ILuint ILAPIENTRY ilGetLumpPos(ILvoid); | |
| ILAPI ILubyte* ILAPIENTRY ilGetPalette(ILvoid); | | ILAPI ILubyte* ILAPIENTRY ilGetPalette(ILvoid); | |
|
| ILAPI const char* ILAPIENTRY ilGetString(ILenum StringName); | | ILAPI const ILstring ILAPIENTRY ilGetString(ILenum StringName); | |
| ILAPI ILvoid ILAPIENTRY ilHint(ILenum Target, ILenum Mode); | | ILAPI ILvoid ILAPIENTRY ilHint(ILenum Target, ILenum Mode); | |
| ILAPI ILvoid ILAPIENTRY ilInit(ILvoid); | | ILAPI ILvoid ILAPIENTRY ilInit(ILvoid); | |
| ILAPI ILboolean ILAPIENTRY ilIsDisabled(ILenum Mode); | | ILAPI ILboolean ILAPIENTRY ilIsDisabled(ILenum Mode); | |
| ILAPI ILboolean ILAPIENTRY ilIsEnabled(ILenum Mode); | | ILAPI ILboolean ILAPIENTRY ilIsEnabled(ILenum Mode); | |
| ILAPI ILboolean ILAPIENTRY ilIsImage(ILuint Image); | | ILAPI ILboolean ILAPIENTRY ilIsImage(ILuint Image); | |
| ILAPI ILboolean ILAPIENTRY ilIsValid(ILenum Type, const ILst
ring FileName); | | ILAPI ILboolean ILAPIENTRY ilIsValid(ILenum Type, const ILst
ring FileName); | |
| ILAPI ILboolean ILAPIENTRY ilIsValidF(ILenum Type, ILHANDLE
File); | | ILAPI ILboolean ILAPIENTRY ilIsValidF(ILenum Type, ILHANDLE
File); | |
| ILAPI ILboolean ILAPIENTRY ilIsValidL(ILenum Type, ILvoid *L
ump, ILuint Size); | | ILAPI ILboolean ILAPIENTRY ilIsValidL(ILenum Type, ILvoid *L
ump, ILuint Size); | |
| ILAPI ILvoid ILAPIENTRY ilKeyColour(ILclampf Red, ILclampf Green,
ILclampf Blue, ILclampf Alpha); | | ILAPI ILvoid ILAPIENTRY ilKeyColour(ILclampf Red, ILclampf Green,
ILclampf Blue, ILclampf Alpha); | |
| ILAPI ILboolean ILAPIENTRY ilLoad(ILenum Type, const ILstrin
g FileName); | | ILAPI ILboolean ILAPIENTRY ilLoad(ILenum Type, const ILstrin
g FileName); | |
| ILAPI ILboolean ILAPIENTRY ilLoadF(ILenum Type, ILHANDLE Fil
e); | | ILAPI ILboolean ILAPIENTRY ilLoadF(ILenum Type, ILHANDLE Fil
e); | |
| ILAPI ILboolean ILAPIENTRY ilLoadImage(const ILstring FileNa
me); | | ILAPI ILboolean ILAPIENTRY ilLoadImage(const ILstring FileNa
me); | |
| ILAPI ILboolean ILAPIENTRY ilLoadL(ILenum Type, ILvoid *Lump
, ILuint Size); | | ILAPI ILboolean ILAPIENTRY ilLoadL(ILenum Type, ILvoid *Lump
, ILuint Size); | |
| ILAPI ILboolean ILAPIENTRY ilLoadPal(const ILstring FileName
); | | ILAPI ILboolean ILAPIENTRY ilLoadPal(const ILstring FileName
); | |
| ILAPI ILboolean ILAPIENTRY ilOriginFunc(ILenum Mode); | | ILAPI ILboolean ILAPIENTRY ilOriginFunc(ILenum Mode); | |
|
| ILAPI ILboolean ILAPIENTRY ilOverlayImage(ILuint Src, ILint
XCoord, ILint YCoord, ILint ZCoord); | | ILAPI ILboolean ILAPIENTRY ilOverlayImage(ILuint Source, ILi
nt XCoord, ILint YCoord, ILint ZCoord); | |
| ILAPI ILvoid ILAPIENTRY ilPopAttrib(ILvoid); | | ILAPI ILvoid ILAPIENTRY ilPopAttrib(ILvoid); | |
| ILAPI ILvoid ILAPIENTRY ilPushAttrib(ILuint Bits); | | ILAPI ILvoid ILAPIENTRY ilPushAttrib(ILuint Bits); | |
| ILAPI ILvoid ILAPIENTRY ilRegisterFormat(ILenum Format); | | ILAPI ILvoid ILAPIENTRY ilRegisterFormat(ILenum Format); | |
| ILAPI ILboolean ILAPIENTRY ilRegisterLoad(const ILstring Ext
, IL_LOADPROC Load); | | ILAPI ILboolean ILAPIENTRY ilRegisterLoad(const ILstring Ext
, IL_LOADPROC Load); | |
| ILAPI ILboolean ILAPIENTRY ilRegisterMipNum(ILuint Num); | | ILAPI ILboolean ILAPIENTRY ilRegisterMipNum(ILuint Num); | |
| ILAPI ILboolean ILAPIENTRY ilRegisterNumImages(ILuint Num); | | ILAPI ILboolean ILAPIENTRY ilRegisterNumImages(ILuint Num); | |
| ILAPI ILvoid ILAPIENTRY ilRegisterOrigin(ILenum Origin); | | ILAPI ILvoid ILAPIENTRY ilRegisterOrigin(ILenum Origin); | |
| ILAPI ILvoid ILAPIENTRY ilRegisterPal(ILvoid *Pal, ILuint Size, I
Lenum Type); | | ILAPI ILvoid ILAPIENTRY ilRegisterPal(ILvoid *Pal, ILuint Size, I
Lenum Type); | |
| ILAPI ILboolean ILAPIENTRY ilRegisterSave(const ILstring Ext
, IL_SAVEPROC Save); | | ILAPI ILboolean ILAPIENTRY ilRegisterSave(const ILstring Ext
, IL_SAVEPROC Save); | |
| ILAPI ILvoid ILAPIENTRY ilRegisterType(ILenum Type); | | ILAPI ILvoid ILAPIENTRY ilRegisterType(ILenum Type); | |
| | | | |
End of changes. 8 change blocks. |
| 7 lines changed or deleted | | 12 lines changed or added | |
|
| ilut.h | | ilut.h | |
| //-------------------------------------------------------------------------
---- | | //-------------------------------------------------------------------------
---- | |
| // | | // | |
| // ImageLib Utility Toolkit Sources | | // ImageLib Utility Toolkit Sources | |
| // Copyright (C) 2000-2002 by Denton Woods | | // Copyright (C) 2000-2002 by Denton Woods | |
|
| // Last modified: 06/11/2002 <--Y2K Compliant! =] | | // Last modified: 06/23/2002 <--Y2K Compliant! =] | |
| // | | // | |
|
| // Filename: il/ilut.h | | // Filename: IL/ilut.h | |
| // | | // | |
| // Description: The main include file for ILUT | | // Description: The main include file for ILUT | |
| // | | // | |
| //-------------------------------------------------------------------------
---- | | //-------------------------------------------------------------------------
---- | |
| | | | |
| #ifndef __ilut_h_ | | #ifndef __ilut_h_ | |
| #ifndef __ILUT_H__ | | #ifndef __ILUT_H__ | |
| | | | |
| #define __ilut_h_ | | #define __ilut_h_ | |
| #define __ILUT_H__ | | #define __ILUT_H__ | |
| | | | |
| skipping to change at line 40 | | skipping to change at line 40 | |
| #ifdef IL_DEBUG | | #ifdef IL_DEBUG | |
| #pragma comment(lib, "ilut-d.lib") | | #pragma comment(lib, "ilut-d.lib") | |
| #else | | #else | |
| #pragma comment(lib, "ilut.lib") | | #pragma comment(lib, "ilut.lib") | |
| #endif//_DEBUG | | #endif//_DEBUG | |
| #endif//_ILUT_BUILD_LIBRARY | | #endif//_ILUT_BUILD_LIBRARY | |
| #endif//_MSC_VER | | #endif//_MSC_VER | |
| #endif//IL_STATIC_LIB | | #endif//IL_STATIC_LIB | |
| #endif//_WIN32 | | #endif//_WIN32 | |
| | | | |
|
| #define ILUT_VERSION_1_5_6 1 | | #define ILUT_VERSION_1_6_1 1 | |
| #define ILUT_VERSION 156 | | #define ILUT_VERSION 161 | |
| | | | |
| // Attribute Bits | | // Attribute Bits | |
| #define ILUT_OPENGL_BIT 0x00
000001 | | #define ILUT_OPENGL_BIT 0x00
000001 | |
| #define ILUT_D3D_BIT 0x00000002 | | #define ILUT_D3D_BIT 0x00000002 | |
| #define ILUT_ALL_ATTRIB_BITS 0x000FFFFF | | #define ILUT_ALL_ATTRIB_BITS 0x000FFFFF | |
| | | | |
| // Error Types | | // Error Types | |
| #define ILUT_INVALID_ENUM 0x0501 | | #define ILUT_INVALID_ENUM 0x0501 | |
| #define ILUT_OUT_OF_MEMORY 0x0502 | | #define ILUT_OUT_OF_MEMORY 0x0502 | |
| #define ILUT_INVALID_VALUE 0x0505 | | #define ILUT_INVALID_VALUE 0x0505 | |
| | | | |
| skipping to change at line 73 | | skipping to change at line 73 | |
| #define ILUT_D3D_MIPLEVELS 0x0620 | | #define ILUT_D3D_MIPLEVELS 0x0620 | |
| #define ILUT_MAXTEX_WIDTH 0x0630 | | #define ILUT_MAXTEX_WIDTH 0x0630 | |
| #define ILUT_MAXTEX_HEIGHT 0x0631 | | #define ILUT_MAXTEX_HEIGHT 0x0631 | |
| #define ILUT_MAXTEX_DEPTH 0x0632 | | #define ILUT_MAXTEX_DEPTH 0x0632 | |
| #define ILUT_GL_USE_S3TC 0x0634 | | #define ILUT_GL_USE_S3TC 0x0634 | |
| #define ILUT_D3D_USE_DXTC 0x0634 | | #define ILUT_D3D_USE_DXTC 0x0634 | |
| #define ILUT_GL_GEN_S3TC 0x0635 | | #define ILUT_GL_GEN_S3TC 0x0635 | |
| #define ILUT_D3D_GEN_DXTC 0x0635 | | #define ILUT_D3D_GEN_DXTC 0x0635 | |
| #define ILUT_S3TC_FORMAT 0x0705 | | #define ILUT_S3TC_FORMAT 0x0705 | |
| #define ILUT_DXTC_FORMAT 0x0705 | | #define ILUT_DXTC_FORMAT 0x0705 | |
|
| | | #define ILUT_D3D_POOL 0x0706 | |
| | | | |
| // Values | | // Values | |
| #define ILUT_VERSION_NUM 0x0DE2 | | #define ILUT_VERSION_NUM 0x0DE2 | |
| | | | |
| // ImageLib Utility Toolkit Functions | | // ImageLib Utility Toolkit Functions | |
| ILAPI ILboolean ILAPIENTRY ilutDisable(ILenum Mode); | | ILAPI ILboolean ILAPIENTRY ilutDisable(ILenum Mode); | |
| ILAPI ILboolean ILAPIENTRY ilutEnable(ILenum Mode); | | ILAPI ILboolean ILAPIENTRY ilutEnable(ILenum Mode); | |
| ILAPI ILboolean ILAPIENTRY ilutGetBoolean(ILenum Mode); | | ILAPI ILboolean ILAPIENTRY ilutGetBoolean(ILenum Mode); | |
| ILAPI ILvoid ILAPIENTRY ilutGetBooleanv(ILenum Mode, ILboolean *P
aram); | | ILAPI ILvoid ILAPIENTRY ilutGetBooleanv(ILenum Mode, ILboolean *P
aram); | |
| ILAPI ILint ILAPIENTRY ilutGetInteger(ILenum Mode); | | ILAPI ILint ILAPIENTRY ilutGetInteger(ILenum Mode); | |
| | | | |
End of changes. 4 change blocks. |
| 4 lines changed or deleted | | 5 lines changed or added | |
|