Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

/include/ZE_Utility.h

Go to the documentation of this file.
00001 /*******************************************************************************
00002         This file is Part of the ZEngine Library for 2D game development.
00003                    Copyright (C) 2002, 2003 James Turk
00004 
00005                      Licensed under a BSD-style license.
00006 
00007     The maintainer of this library is James Turk (james@conceptofzero.net) 
00008      and the home of this Library is http://www.zengine.sourceforge.net
00009 *******************************************************************************/
00010 
00022 #ifndef __ze_utility_h__
00023 #define __ze_utility_h__
00024 
00025 #include "ZE_Includes.h"
00026 
00027 namespace ZE
00028 {
00029 
00039 std::string FormatStr(const char *fmtstr, ...);
00040 
00052 SDL_RWops* RWFromZip(std::string zipname, std::string filename);
00053 
00060 void FreeImage(SDL_Surface *&image);
00061 
00062 #ifdef USE_SDL_MIXER
00063 
00070 void FreeSound(Mix_Chunk *&chunk);
00071 
00078 void FreeMusic(Mix_Music *&music);
00079 
00080 #endif
00081 
00082 #ifdef USE_SDL_TTF
00083 
00089 void FreeFont(TTF_Font *&font);
00090 #endif
00091 
00092 }
00093 
00094 #endif //__ze_utility_h__
00095 

Generated on Sun Oct 5 19:34:45 2003 for ZEngine by doxygen1.3