_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

mng.cpp File Reference
#include "stratagus.h"
#include "video.h"
#include "iolib.h"
#include "iocompat.h"

mng.cpp - The mng graphic file loader.

static std::map< std::string, Mng * > MngCache
 
static mng_ptr MNG_DECL my_alloc (mng_size_t len)
 
static void MNG_DECL my_free (mng_ptr ptr, mng_size_t)
 
static mng_bool MNG_DECL my_openstream (mng_handle handle)
 
static mng_bool MNG_DECL my_closestream (mng_handle handle)
 
static mng_bool MNG_DECL my_readdata (mng_handle handle, mng_ptr buf, mng_uint32 buflen, mng_uint32p read)
 
static mng_bool MNG_DECL my_processheader (mng_handle handle, mng_uint32 width, mng_uint32 height)
 
static mng_ptr MNG_DECL my_getcanvasline (mng_handle handle, mng_uint32 linenr)
 
static mng_bool MNG_DECL my_refresh (mng_handle handle, mng_uint32, mng_uint32, mng_uint32, mng_uint32)
 
static mng_uint32 MNG_DECL my_gettickcount (mng_handle)
 
static mng_bool MNG_DECL my_settimer (mng_handle handle, mng_uint32 msecs)
 
static mng_bool MNG_DECL my_processmend (mng_handle handle, mng_uint32 iterationsdone, mng_uint32)
 
static mng_bool MNG_DECL my_errorproc (mng_handle handle, mng_int32, mng_int8, mng_chunkid, mng_uint32, mng_int32, mng_int32, mng_pchar errortext)
 

Function Documentation

◆ my_alloc()

static mng_ptr MNG_DECL my_alloc ( mng_size_t  len)
static

◆ my_closestream()

static mng_bool MNG_DECL my_closestream ( mng_handle  handle)
static

◆ my_errorproc()

static mng_bool MNG_DECL my_errorproc ( mng_handle  handle,
mng_int32  ,
mng_int8  ,
mng_chunkid  ,
mng_uint32  ,
mng_int32  ,
mng_int32  ,
mng_pchar  errortext 
)
static

◆ my_free()

static void MNG_DECL my_free ( mng_ptr  ptr,
mng_size_t   
)
static

◆ my_getcanvasline()

static mng_ptr MNG_DECL my_getcanvasline ( mng_handle  handle,
mng_uint32  linenr 
)
static

◆ my_gettickcount()

static mng_uint32 MNG_DECL my_gettickcount ( mng_handle  )
static

◆ my_openstream()

static mng_bool MNG_DECL my_openstream ( mng_handle  handle)
static

◆ my_processheader()

static mng_bool MNG_DECL my_processheader ( mng_handle  handle,
mng_uint32  width,
mng_uint32  height 
)
static

◆ my_processmend()

static mng_bool MNG_DECL my_processmend ( mng_handle  handle,
mng_uint32  iterationsdone,
mng_uint32   
)
static

◆ my_readdata()

static mng_bool MNG_DECL my_readdata ( mng_handle  handle,
mng_ptr  buf,
mng_uint32  buflen,
mng_uint32p  read 
)
static

◆ my_refresh()

static mng_bool MNG_DECL my_refresh ( mng_handle  handle,
mng_uint32  ,
mng_uint32  ,
mng_uint32  ,
mng_uint32   
)
static

◆ my_settimer()

static mng_bool MNG_DECL my_settimer ( mng_handle  handle,
mng_uint32  msecs 
)
static

Variable Documentation

◆ MngCache

std::map<std::string, Mng *> MngCache
static
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.