//! Writes a Mng to an already-opened file ILuint ilSaveMngF(ILHANDLE File) { ILuint Pos = itellw(); iSetOutputFile(File); if (iSaveMngInternal() == IL_FALSE) return 0; // Error occurred return itellw() - Pos; // Return the number of bytes written. }
//! Writes a Mng to a memory "lump" ILuint ilSaveMngL(void *Lump, ILuint Size) { ILuint Pos; iSetOutputLump(Lump, Size); Pos = itellw(); if (iSaveMngInternal() == IL_FALSE) return 0; // Error occurred return itellw() - Pos; // Return the number of bytes written. }
//! Writes a Mng to a memory "lump" ILboolean ilSaveMngL(ILvoid *Lump, ILuint Size) { iSetOutputLump(Lump, Size); return iSaveMngInternal(); }
//! Writes a Mng to an already-opened file ILboolean ilSaveMngF(ILHANDLE File) { iSetOutputFile(File); return iSaveMngInternal(); }