Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef __ilu_h_
00015 #ifndef __ILU_H__
00016
00017 #define __ilu_h_
00018 #define __ILU_H__
00019
00020 #include <IL/il.h>
00021
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 #define ILU_VERSION_1_6_7 1
00048 #define ILU_VERSION 167
00049
00050
00051 #define ILU_FILTER 0x2600
00052 #define ILU_NEAREST 0x2601
00053 #define ILU_LINEAR 0x2602
00054 #define ILU_BILINEAR 0x2603
00055 #define ILU_SCALE_BOX 0x2604
00056 #define ILU_SCALE_TRIANGLE 0x2605
00057 #define ILU_SCALE_BELL 0x2606
00058 #define ILU_SCALE_BSPLINE 0x2607
00059 #define ILU_SCALE_LANCZOS3 0x2608
00060 #define ILU_SCALE_MITCHELL 0x2609
00061
00062
00063
00064 #define ILU_INVALID_ENUM 0x0501
00065 #define ILU_OUT_OF_MEMORY 0x0502
00066 #define ILU_INTERNAL_ERROR 0x0504
00067 #define ILU_INVALID_VALUE 0x0505
00068 #define ILU_ILLEGAL_OPERATION 0x0506
00069 #define ILU_INVALID_PARAM 0x0509
00070
00071
00072
00073 #define ILU_PLACEMENT 0x0700
00074 #define ILU_LOWER_LEFT 0x0701
00075 #define ILU_LOWER_RIGHT 0x0702
00076 #define ILU_UPPER_LEFT 0x0703
00077 #define ILU_UPPER_RIGHT 0x0704
00078 #define ILU_CENTER 0x0705
00079 #define ILU_CONVOLUTION_MATRIX 0x0710
00080 #define ILU_VERSION_NUM IL_VERSION_NUM
00081 #define ILU_VENDOR IL_VENDOR
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101 typedef struct ILinfo
00102 {
00103 ILuint Id;
00104 ILubyte *Data;
00105 ILuint Width;
00106 ILuint Height;
00107 ILuint Depth;
00108 ILubyte Bpp;
00109 ILuint SizeOfData;
00110 ILenum Format;
00111 ILenum Type;
00112 ILenum Origin;
00113 ILubyte *Palette;
00114 ILenum PalType;
00115 ILuint PalSize;
00116 ILenum CubeFlags;
00117 ILuint NumNext;
00118 ILuint NumMips;
00119 ILuint NumLayers;
00120 } ILinfo;
00121
00122
00123 typedef struct ILpointf
00124 {
00125 ILfloat x, y;
00126 } ILpointf;
00127
00128 typedef struct ILpointi
00129 {
00130 ILint x, y;
00131 } ILpointi;
00132
00133
00134
00135 ILAPI ILboolean ILAPIENTRY iluAlienify(ILvoid);
00136 ILAPI ILboolean ILAPIENTRY iluBlurAvg(ILuint Iter);
00137 ILAPI ILboolean ILAPIENTRY iluBlurGaussian(ILuint Iter);
00138 ILAPI ILboolean ILAPIENTRY iluBuildMipmaps(ILvoid);
00139 ILAPI ILuint ILAPIENTRY iluColoursUsed(ILvoid);
00140 ILAPI ILboolean ILAPIENTRY iluCompareImage(ILuint Comp);
00141 ILAPI ILboolean ILAPIENTRY iluContrast(ILfloat Contrast);
00142 ILAPI ILboolean ILAPIENTRY iluCrop(ILuint XOff, ILuint YOff, ILuint ZOff, ILuint Width, ILuint Height, ILuint Depth);
00143 ILAPI ILvoid ILAPIENTRY iluDeleteImage(ILuint Id);
00144 ILAPI ILboolean ILAPIENTRY iluEdgeDetectE(ILvoid);
00145 ILAPI ILboolean ILAPIENTRY iluEdgeDetectP(ILvoid);
00146 ILAPI ILboolean ILAPIENTRY iluEdgeDetectS(ILvoid);
00147 ILAPI ILboolean ILAPIENTRY iluEmboss(ILvoid);
00148 ILAPI ILboolean ILAPIENTRY iluEnlargeCanvas(ILuint Width, ILuint Height, ILuint Depth);
00149 ILAPI ILboolean ILAPIENTRY iluEnlargeImage(ILfloat XDim, ILfloat YDim, ILfloat ZDim);
00150 ILAPI ILboolean ILAPIENTRY iluEqualize(ILvoid);
00151 ILAPI const ILstring ILAPIENTRY iluErrorString(ILenum Error);
00152 ILAPI ILboolean ILAPIENTRY iluFlipImage(ILvoid);
00153 ILAPI ILboolean ILAPIENTRY iluGammaCorrect(ILfloat Gamma);
00154 ILAPI ILuint ILAPIENTRY iluGenImage(ILvoid);
00155 ILAPI ILvoid ILAPIENTRY iluGetImageInfo(ILinfo *Info);
00156 ILAPI ILint ILAPIENTRY iluGetInteger(ILenum Mode);
00157 ILAPI ILvoid ILAPIENTRY iluGetIntegerv(ILenum Mode, ILint *Param);
00158 ILAPI const ILstring ILAPIENTRY iluGetString(ILenum StringName);
00159 ILAPI ILvoid ILAPIENTRY iluImageParameter(ILenum PName, ILenum Param);
00160 ILAPI ILvoid ILAPIENTRY iluInit(ILvoid);
00161 ILAPI ILboolean ILAPIENTRY iluInvertAlpha(ILvoid);
00162 ILAPI ILuint ILAPIENTRY iluLoadImage(const ILstring FileName);
00163 ILAPI ILboolean ILAPIENTRY iluMirror(ILvoid);
00164 ILAPI ILboolean ILAPIENTRY iluNegative(ILvoid);
00165 ILAPI ILboolean ILAPIENTRY iluNoisify(ILclampf Tolerance);
00166 ILAPI ILboolean ILAPIENTRY iluPixelize(ILuint PixSize);
00167 ILAPI ILvoid ILAPIENTRY iluRegionfv(ILpointf *Points, ILuint n);
00168 ILAPI ILvoid ILAPIENTRY iluRegioniv(ILpointi *Points, ILuint n);
00169 ILAPI ILboolean ILAPIENTRY iluReplaceColour(ILubyte Red, ILubyte Green, ILubyte Blue, ILfloat Tolerance);
00170 ILAPI ILboolean ILAPIENTRY iluRotate(ILfloat Angle);
00171 ILAPI ILboolean ILAPIENTRY iluRotate3D(ILfloat x, ILfloat y, ILfloat z, ILfloat Angle);
00172 ILAPI ILboolean ILAPIENTRY iluSaturate1f(ILfloat Saturation);
00173 ILAPI ILboolean ILAPIENTRY iluSaturate4f(ILfloat r, ILfloat g, ILfloat b, ILfloat Saturation);
00174 ILAPI ILboolean ILAPIENTRY iluScale(ILuint Width, ILuint Height, ILuint Depth);
00175 ILAPI ILboolean ILAPIENTRY iluScaleColours(ILfloat r, ILfloat g, ILfloat b);
00176 ILAPI ILboolean ILAPIENTRY iluSharpen(ILfloat Factor, ILuint Iter);
00177 ILAPI ILboolean ILAPIENTRY iluSwapColours(ILvoid);
00178 ILAPI ILboolean ILAPIENTRY iluWave(ILfloat Angle);
00179
00180 #define iluColorsUsed iluColoursUsed
00181 #define iluSwapColors iluSwapColours
00182 #define iluReplaceColor iluReplaceColour
00183 #define iluScaleColor iluScaleColour
00184
00185 #ifdef __cplusplus
00186 }
00187 #endif
00188
00189 #endif // __ILU_H__
00190 #endif // __ilu_h_