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

`#include "il_internal.h"`
`#include <libmng.h>`

## Defines

#define | MNG_SUPPORT_READ
#define | MNG_SUPPORT_WRITE
#define | MNG_SUPPORT_DISPLAY

## Functions

mng_ptr MNG_DECL | mymngalloc (mng_size_t size)
void MNG_DECL | mymngfree (mng_ptr p, mng_size_t size)
mng_bool MNG_DECL | mymngopenstream (mng_handle mng)
mng_bool MNG_DECL | mymngopenstreamwrite (mng_handle mng)
mng_bool MNG_DECL | mymngclosestream (mng_handle mng)
mng_bool MNG_DECL | mymngreadstream (mng_handle mng, mng_ptr buffer, mng_size_t size, mng_uint32 *bytesread)
mng_bool MNG_DECL | mymngwritedata (mng_handle mng, mng_ptr buffer, mng_size_t size, mng_uint32 *byteswritten)
mng_bool MNG_DECL | mymngprocessheader (mng_handle mng, mng_uint32 width, mng_uint32 height)
mng_ptr MNG_DECL | mymnggetcanvasline (mng_handle mng, mng_uint32 line)
mng_uint32 MNG_DECL | mymnggetticks (mng_handle mng)
mng_bool MNG_DECL | mymngrefresh (mng_handle mng, mng_uint32 x, mng_uint32 y, mng_uint32 w, mng_uint32 h)
mng_bool MNG_DECL | mymngsettimer (mng_handle mng, mng_uint32 msecs)
mng_bool MNG_DECL | mymngerror (mng_handle mng, mng_int32 code, mng_int8 severity, mng_chunkid chunktype, mng_uint32 chunkseq, mng_int32 extra1, mng_int32 extra2, mng_pchar text)
ILboolean | iLoadMngInternal (void)
ILboolean | ilLoadMng (ILconst_string FileName)
ILboolean | ilLoadMngF (ILHANDLE File)
ILboolean | ilLoadMngL (const void *Lump, ILuint Size)
ILboolean | iSaveMngInternal (void)
ILboolean | ilSaveMng (const ILstring FileName)
| Writes a Mng file.
ILuint | ilSaveMngF (ILHANDLE File)
| Writes a Mng to an already-opened file.
ILuint | ilSaveMngL (void *Lump, ILuint Size)
| Writes a Mng to a memory "lump".

## Define Documentation

#define MNG_SUPPORT_DISPLAY

#define MNG_SUPPORT_READ

#define MNG_SUPPORT_WRITE

## Function Documentation

ILboolean ilLoadMng | ( | ILconst_string | FileName | ) |

Referenced by ilLoad(), and ilLoadImage().

ILboolean ilLoadMngF | ( | ILHANDLE | File | ) |

Referenced by ilLoadF(), and ilLoadMng().

ILboolean ilLoadMngL | ( | const void * | Lump,
|  | ILuint | Size |
| ) |  |  |

Referenced by ilLoadL().

ILboolean iLoadMngInternal | ( | void |  | ) |

Referenced by ilLoadMngF(), and ilLoadMngL().

ILboolean ilSaveMng | ( | const ILstring | FileName | ) |

Writes a Mng file.

Referenced by ilSaveImage().

ILuint ilSaveMngF | ( | ILHANDLE | File | ) |

Writes a Mng to an already-opened file.

Referenced by ilSaveMng().

ILuint ilSaveMngL | ( | void * | Lump,
|  | ILuint | Size |
| ) |  |  |

Writes a Mng to a memory "lump".

ILboolean iSaveMngInternal | ( | void |  | ) |

Referenced by ilSaveMngF(), and ilSaveMngL().

mng_ptr MNG_DECL mymngalloc | ( | mng_size_t | size | ) |

Referenced by iLoadMngInternal().

mng_bool MNG_DECL mymngclosestream | ( | mng_handle | mng | ) |

Referenced by iLoadMngInternal().

mng_bool MNG_DECL mymngerror | ( | mng_handle | mng,
|  | mng_int32 | code,
|  | mng_int8 | severity,
|  | mng_chunkid | chunktype,
|  | mng_uint32 | chunkseq,
|  | mng_int32 | extra1,
|  | mng_int32 | extra2,
|  | mng_pchar | text |
| ) |  |  |

Referenced by iLoadMngInternal().

void MNG_DECL mymngfree | ( | mng_ptr | p,
|  | mng_size_t | size |
| ) |  |  |

Referenced by iLoadMngInternal().

mng_ptr MNG_DECL mymnggetcanvasline | ( | mng_handle | mng,
|  | mng_uint32 | line |
| ) |  |  |

Referenced by iLoadMngInternal().

mng_uint32 MNG_DECL mymnggetticks | ( | mng_handle | mng | ) |

Referenced by iLoadMngInternal().

mng_bool MNG_DECL mymngopenstream | ( | mng_handle | mng | ) |

Referenced by iLoadMngInternal().

mng_bool MNG_DECL mymngopenstreamwrite | ( | mng_handle | mng | ) |

mng_bool MNG_DECL mymngprocessheader | ( | mng_handle | mng,
|  | mng_uint32 | width,
|  | mng_uint32 | height |
| ) |  |  |

Referenced by iLoadMngInternal().

mng_bool MNG_DECL mymngreadstream | ( | mng_handle | mng,
|  | mng_ptr | buffer,
|  | mng_size_t | size,
|  | mng_uint32 * | bytesread |
| ) |  |  |

Referenced by iLoadMngInternal().

mng_bool MNG_DECL mymngrefresh | ( | mng_handle | mng,
|  | mng_uint32 | x,
|  | mng_uint32 | y,
|  | mng_uint32 | w,
|  | mng_uint32 | h |
| ) |  |  |

Referenced by iLoadMngInternal().

mng_bool MNG_DECL mymngsettimer | ( | mng_handle | mng,
|  | mng_uint32 | msecs |
| ) |  |  |

Referenced by iLoadMngInternal().

mng_bool MNG_DECL mymngwritedata | ( | mng_handle | mng,
|  | mng_ptr | buffer,
|  | mng_size_t | size,
|  | mng_uint32 * | byteswritten |
| ) |  |  |