Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef IL_EXPORTS_H
00014 #define IL_EXPORTS_H
00015
00016 #ifdef __cplusplus
00017 extern "C" {
00018 #endif
00019
00020 #define IL_MAX(a,b) (((a) > (b)) ? (a) : (b))
00021 #define IL_MIN(a,b) (((a) < (b)) ? (a) : (b))
00022
00023
00024
00025 typedef struct ILpal
00026 {
00027 ILubyte *Palette;
00028 ILuint PalSize;
00029 ILenum PalType;
00030 } ILpal;
00031
00032
00033
00034 typedef struct ILimage
00035 {
00036 ILuint Width;
00037 ILuint Height;
00038 ILuint Depth;
00039 ILubyte Bpp;
00040 ILubyte Bpc;
00041 ILuint Bps;
00042 ILubyte *Data;
00043 ILuint SizeOfData;
00044 ILuint SizeOfPlane;
00045 ILenum Format;
00046 ILenum Type;
00047 ILenum Origin;
00048 ILpal Pal;
00049 ILuint Duration;
00050 ILenum CubeFlags;
00051 struct ILimage *Mipmaps;
00052 struct ILimage *Next;
00053 struct ILimage *Layers;
00054 ILuint NumNext;
00055 ILuint NumMips;
00056 ILuint NumLayers;
00057 ILuint *AnimList;
00058 ILuint AnimSize;
00059 ILvoid *Profile;
00060 ILuint ProfileSize;
00061 ILuint OffX, OffY;
00062 ILubyte *DxtcData;
00063 ILenum DxtcFormat;
00064 ILuint DxtcSize;
00065 } ILimage;
00066
00067
00068
00069 ILAPI ILvoid* ILAPIENTRY ialloc(ILuint Size);
00070 ILAPI ILvoid ILAPIENTRY ifree(ILvoid *Ptr);
00071 ILAPI ILvoid* ILAPIENTRY icalloc(ILuint Size, ILuint Num);
00072
00073
00074
00075
00076 ILAPI ILimage* ILAPIENTRY ilGetCurImage(ILvoid);
00077 ILAPI ILvoid ILAPIENTRY ilSetCurImage(ILimage *Image);
00078 ILAPI ILvoid ILAPIENTRY ilSetError(ILenum Error);
00079 ILAPI ILvoid ILAPIENTRY ilSetPal(ILpal *Pal);
00080
00081
00082
00083
00084 ILAPI ILubyte ILAPIENTRY ilGetBppFormat(ILenum Format);
00085 ILAPI ILubyte ILAPIENTRY ilGetBppPal(ILenum PalType);
00086 ILAPI ILubyte ILAPIENTRY ilGetBppType(ILenum Type);
00087 ILAPI ILenum ILAPIENTRY ilGetTypeBpc(ILubyte Bpc);
00088 ILAPI ILenum ILAPIENTRY ilGetPalBaseType(ILenum PalType);
00089 ILAPI ILuint ILAPIENTRY ilNextPower2(ILuint Num);
00090 ILAPI ILenum ILAPIENTRY ilTypeFromExt(const ILstring FileName);
00091 ILAPI ILvoid ILAPIENTRY ilReplaceCurImage(ILimage *Image);
00092
00093
00094
00095
00096 ILAPI ILvoid ILAPIENTRY iBindImageTemp(ILvoid);
00097 ILAPI ILboolean ILAPIENTRY ilClearImage_(ILimage *Image);
00098 ILAPI ILvoid ILAPIENTRY ilCloseImage(ILimage *Image);
00099 ILAPI ILvoid ILAPIENTRY ilClosePal(ILpal *Palette);
00100 ILAPI ILpal* ILAPIENTRY iCopyPal(ILvoid);
00101 ILAPI ILboolean ILAPIENTRY ilCopyImageAttr(ILimage *Dest, ILimage *Src);
00102 ILAPI ILimage* ILAPIENTRY ilCopyImage_(ILimage *Src);
00103 ILAPI ILvoid ILAPIENTRY ilGetClear(ILvoid *Colours, ILenum Format, ILenum Type);
00104 ILAPI ILuint ILAPIENTRY ilGetCurName(ILvoid);
00105 ILAPI ILboolean ILAPIENTRY ilIsValidPal(ILpal *Palette);
00106 ILAPI ILimage* ILAPIENTRY ilNewImage(ILuint Width, ILuint Height, ILuint Depth, ILubyte Bpp, ILubyte Bpc);
00107 ILAPI ILboolean ILAPIENTRY ilResizeImage(ILimage *Image, ILuint Width, ILuint Height, ILuint Depth, ILubyte Bpp, ILubyte Bpc);
00108 ILAPI ILboolean ILAPIENTRY ilTexImage_(ILimage *Image, ILuint Width, ILuint Height, ILuint Depth, ILubyte Bpp, ILenum Format, ILenum Type, ILvoid *Data);
00109 ILAPI ILboolean ILAPIENTRY ilTexSubImage_(ILimage *Image, ILvoid *Data);
00110 ILAPI ILvoid* ILAPIENTRY ilConvertBuffer(ILuint SizeOfData, ILenum SrcFormat, ILenum DestFormat, ILenum SrcType, ILenum DestType, ILvoid *Buffer);
00111 ILAPI ILimage* ILAPIENTRY iConvertImage(ILimage *Image, ILenum DestFormat, ILenum DestType);
00112 ILAPI ILpal* ILAPIENTRY iConvertPal(ILpal *Pal, ILenum DestFormat);
00113 ILAPI ILubyte* ILAPIENTRY iGetFlipped(ILimage *Image);
00114
00115
00116
00117 ILAPI ILimage* ILAPIENTRY iluRotate_(ILimage *Image, ILfloat Angle);
00118 ILAPI ILimage* ILAPIENTRY iluRotate3D_(ILimage *Image, ILfloat x, ILfloat y, ILfloat z, ILfloat Angle);
00119 ILAPI ILimage* ILAPIENTRY iluScale_(ILimage *Image, ILuint Width, ILuint Height, ILuint Depth);
00120
00121 #ifdef __cplusplus
00122 }
00123 #endif
00124
00125 #endif//IL_EXPORTS_H