# E:/DevIL/src-IL/src/il_stack.c File Reference

`#include "il_internal.h"`
`#include "il_stack.h"`

## Functions

void ILAPIENTRY | ilGenImages (ILsizei Num, ILuint *Images)
| Creates Num images and puts their index in Images - similar to glGenTextures().
ILuint ILAPIENTRY | ilGenImage ()
void ILAPIENTRY | ilBindImage (ILuint Image)
| Makes Image the current active image - similar to glBindTexture().
void ILAPIENTRY | ilDeleteImages (ILsizei Num, const ILuint *Images)
| Deletes Num images from the image stack - similar to glDeleteTextures().
void ILAPIENTRY | ilDeleteImage (const ILuint Num)
ILboolean ILAPIENTRY | ilIsImage (ILuint Image)
| Checks if Image is a valid ilGenImages-generated image (like glIsTexture()).
ILAPI void ILAPIENTRY | ilCloseImage (ILimage *Image)
| Closes Image and frees all memory associated with it.
ILAPI ILboolean ILAPIENTRY | ilIsValidPal (ILpal *Palette)
ILAPI void ILAPIENTRY | ilClosePal (ILpal *Palette)
| Closes Palette and frees all memory associated with it.
ILimage * | iGetBaseImage ()
ILboolean ILAPIENTRY | ilActiveMipmap (ILuint Number)
| Sets the current mipmap level.
ILboolean ILAPIENTRY | ilActiveImage (ILuint Number)
| Used for setting the current image if it is an animation.
ILboolean ILAPIENTRY | ilActiveFace (ILuint Number)
| Used for setting the current face if it is a cubemap.
ILboolean ILAPIENTRY | ilActiveLayer (ILuint Number)
| Used for setting the current layer if layers exist.
ILuint ILAPIENTRY | ilCreateSubImage (ILenum Type, ILuint Num)
ILAPI ILuint ILAPIENTRY | ilGetCurName ()
ILAPI ILimage *ILAPIENTRY | ilGetCurImage ()
ILAPI void ILAPIENTRY | ilSetCurImage (ILimage *Image)
ILAPI void ILAPIENTRY | ilReplaceCurImage (ILimage *Image)
void *ILAPIENTRY | ilRecalloc (void *Ptr, ILuint OldSize, ILuint NewSize)
ILboolean | iEnlargeStack ()
void ILAPIENTRY | ilInit ()
void ILAPIENTRY | ilShutDown ()
void | iSetImage0 ()
ILAPI void ILAPIENTRY | iBindImageTemp ()

## Function Documentation

ILAPI void ILAPIENTRY iBindImageTemp | ( | void |  | ) |

Referenced by ilInit().

ILboolean iEnlargeStack | ( | void |  | ) |

Referenced by iBindImageTemp(), ilBindImage(), ilGenImages(), and iSetImage0().

ILimage* iGetBaseImage | ( | void |  | ) |

Referenced by iGetActiveNum().

ILboolean ILAPIENTRY ilActiveFace | ( | ILuint | Number | ) |

Used for setting the current face if it is a cubemap.

Referenced by ilFixImage(), iLoadDdsCubemapInternal(), and iLoadVtfInternal().

ILboolean ILAPIENTRY ilActiveImage | ( | ILuint | Number | ) |

Used for setting the current image if it is an animation.

Referenced by ilImage::ActiveImage(), ilDxtcDataToImage(), ilFixImage(), ilFreeImageDxtcData(), ilImageToDxtcData(), iLoadVtfInternal(), ilReplaceCurImage(), and iSaveDdsInternal().

ILboolean ILAPIENTRY ilActiveLayer | ( | ILuint | Number | ) |

Used for setting the current layer if layers exist.

Referenced by ilImage::ActiveLayer(), and ilFixImage().

ILboolean ILAPIENTRY ilActiveMipmap | ( | ILuint | Number | ) |

Sets the current mipmap level.

Referenced by ilImage::ActiveMipmap(), ilDxtcDataToImage(), ilFixImage(), ilFreeImageDxtcData(), ilImageToDxtcData(), iLoadVtfInternal(), and iSaveDdsInternal().

void ILAPIENTRY ilBindImage | ( | ILuint | Image | ) |

Makes Image the current active image - similar to glBindTexture().

Referenced by ilImage::Bind(), ilImage::iGenBind(), ilBlit(), ilCloneCurImage(), ilCopyImage(), ilDxtcDataToImage(), ilFixImage(), ilFreeImageDxtcData(), ilImageToDxtcData(), iLoadDdsCubemapInternal(), iLoadDdsInternal(), iLoadVtfInternal(), ilOverlayImage(), ilRegisterMipNum(), ilRegisterNumFaces(), ilRegisterNumImages(), iluCompareImage(), iluGenImage(), and iSaveDdsInternal().

ILAPI void ILAPIENTRY ilCloseImage | ( | ILimage * | Image | ) |

Closes Image and frees all memory associated with it.

Referenced by Compress(), CompressTo565(), CompressTo88(), CompressToRXGB(), iBuild1DMipmaps_(), iBuild1DMipmapsVertical_(), iBuild2DMipmaps_(), iBuild3DMipmaps_(), iBuild3DMipmapsHorizontal_(), iBuild3DMipmapsVertical_(), iConvertImage(), iConvertPalette(), ilCloseImage(), ilCompressDXT(), ilConvertImage(), ilCopyImageAttr(), ilCreateSubImage(), ilDeleteImages(), ilGetAlpha(), iLoadDcxInternal(), iLoadWalInternal(), ilReadBinaryPpm(), ilRegisterMipNum(), ilRegisterNumFaces(), ilRegisterNumImages(), ilReplaceCurImage(), ilSaveCHeader(), ilSaveFromJpegStruct(), ilShutDown(), ilTexImage_(), ilTexImageDxtc(), iluBuild2DMipmaps(), iluBuild3DMipmaps(), iluContrast(), iluEqualize(), iluRotate(), iluRotate3D(), iluRotate_(), iluScale(), iluScale_(), iluScaleAdvanced(), iluSharpen(), iNeuQuant(), iQuantizeImage(), iSaveBitmapInternal(), iSaveExrInternal(), iSaveHdrInternal(), iSaveJp2Internal(), iSaveJpegInternal(), iSavePcxInternal(), iSavePngInternal(), iSavePnmInternal(), iSavePsdInternal(), iSaveSgiInternal(), iSaveTargaInternal(), iSaveWbmpInternal(), iUncompressDcx(), and iUncompressDcxSmall().

ILAPI void ILAPIENTRY ilClosePal | ( | ILpal * | Palette | ) |

Closes Palette and frees all memory associated with it.

Referenced by iSavePngInternal().

ILuint ILAPIENTRY ilCreateSubImage | ( | ILenum | Type,
|  | ILuint | Num |
| ) |  |  |

void ILAPIENTRY ilDeleteImage | ( | const ILuint | Num | ) |

void ILAPIENTRY ilDeleteImages | ( | ILsizei | Num,
|  | const ILuint * | Images |
| ) |  |  |

Deletes Num images from the image stack - similar to glDeleteTextures().

Referenced by ilImage::Delete(), ilDeleteImage(), iluDeleteImage(), iluLoadImage(), and ilImage::~ilImage().

ILuint ILAPIENTRY ilGenImage | ( | void |  | ) |

void ILAPIENTRY ilGenImages | ( | ILsizei | Num,
|  | ILuint * | Images |
| ) |  |  |

Creates Num images and puts their index in Images - similar to glGenTextures().

Referenced by ilImage::iGenBind(), ilCloneCurImage(), ilGenImage(), iluGenImage(), and iluLoadImage().

ILAPI ILimage* ILAPIENTRY ilGetCurImage | ( | void |  | ) |

Referenced by iluAlienify(), iluBlurAvg(), iluBlurGaussian(), iluBuild2DMipmaps(), iluBuild3DMipmaps(), iluBuildMipmaps(), iluColoursUsed(), iluCompareImage(), iluContrast(), iluConvolution(), iluCrop2D(), iluCrop3D(), iluEdgeDetectE(), iluEdgeDetectP(), iluEdgeDetectS(), iluEmboss(), iluEnlargeCanvas(), iluEnlargeImage(), iluEqualize(), iluFlipImage(), iluGammaCorrect(), iluGetImageInfo(), iluInvertAlpha(), iluNegative(), iluNoisify(), iluPixelize(), iluReplaceColour(), iluRotate(), iluRotate3D(), iluSaturate4f(), iluScale(), iluScale_(), iluScaleAdvanced(), iluScaleAlpha(), iluScaleColours(), iluSharpen(), iluSwapColours(), and iluWave().

ILAPI ILuint ILAPIENTRY ilGetCurName | ( | void |  | ) |

Referenced by iGetBaseImage(), ilBlit(), ilCopyImage(), ilFixImage(), ilGetIntegerv(), iLoadDdsCubemapInternal(), iLoadDdsInternal(), iLoadVtfInternal(), ilOverlayImage(), ilRegisterMipNum(), ilRegisterNumFaces(), ilRegisterNumImages(), ilReplaceCurImage(), iluCompareImage(), and iluGetImageInfo().

void ILAPIENTRY ilInit | ( | void |  | ) |

ILboolean ILAPIENTRY ilIsImage | ( | ILuint | Image | ) |

Checks if Image is a valid ilGenImages-generated image (like glIsTexture()).

Referenced by iluCompareImage().

ILAPI ILboolean ILAPIENTRY ilIsValidPal | ( | ILpal * | Palette | ) |

Referenced by ilClosePal().

void* ILAPIENTRY ilRecalloc | ( | void * | Ptr,
|  | ILuint | OldSize,
|  | ILuint | NewSize |
| ) |  |  |

Referenced by iEnlargeStack().

ILAPI void ILAPIENTRY ilReplaceCurImage | ( | ILimage * | Image | ) |

ILAPI void ILAPIENTRY ilSetCurImage | ( | ILimage * | Image | ) |

Referenced by iConvertPalette(), iluBuild2DMipmaps(), iluBuild3DMipmaps(), iluRotate(), iluScale_(), and iluSharpen().

void ILAPIENTRY ilShutDown | ( | void |  | ) |

Referenced by iEnlargeStack().

void iSetImage0 | ( | void |  | ) |

Referenced by ilInit().