ILAPI ILboolean ILAPIENTRY ilBlit(ILuint Source, ILint DestX, ILint DestY, ILint DestZ, ILuint SrcX, ILuint SrcY, ILuint SrcZ, ILuint Width, ILuint Height, ILuint Depth) { ILimage * targetImage = iCurImage; ILuint targetName = ilGetCurName(); ilBindImage(Source); ILimage * sourceImage = iCurImage; ILboolean result = il2Blit(sourceImage, targetImage, DestX, DestY, DestZ, SrcX, SrcY, SrcZ, Width, Height, Depth); ilBindImage(targetName); return result; }
//! Overlays the image found in Src on top of the current bound image at the coords specified. ILboolean ILAPIENTRY il2OverlayImage(ILimage* aSource, ILimage* aTarget, ILint aXCoord, ILint aYCoord, ILint aZCoord) { return il2Blit(aSource, aTarget, aXCoord, aYCoord, aZCoord, 0, 0, 0, aSource->Width, aSource->Height, aSource->Depth); }