55 lines
		
	
	
	
		
			4.1 KiB
		
	
	
	
		
			HTML
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
	
		
			4.1 KiB
		
	
	
	
		
			HTML
		
	
	
		
			Executable file
		
	
	
	
	
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 | |
| <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
 | |
| <title>/include/ZE_Utility.h Source File</title>
 | |
| <link href="doxygen.css" rel="stylesheet" type="text/css">
 | |
| </head><body>
 | |
| <!-- Generated by Doxygen 1.3-rc2 -->
 | |
| <center>
 | |
| <a class="qindex" href="index.html">Main Page</a>   <a class="qindex" href="namespaces.html">Namespace List</a>   <a class="qindex" href="hierarchy.html">Class Hierarchy</a>   <a class="qindex" href="annotated.html">Compound List</a>   <a class="qindex" href="files.html">File List</a>   <a class="qindex" href="namespacemembers.html">Namespace Members</a>   <a class="qindex" href="functions.html">Compound Members</a>   <a class="qindex" href="globals.html">File Members</a>   </center>
 | |
| <hr><h1>/include/ZE_Utility.h</h1><a href="ZE__Utility_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*******************************************************************************</span>
 | |
| 00002 <span class="comment">        This file is Part of the ZEngine Library for 2D game development.</span>
 | |
| 00003 <span class="comment">                   Copyright (C) 2002, 2003 James Turk</span>
 | |
| 00004 <span class="comment"></span>
 | |
| 00005 <span class="comment">                     Licensed under a BSD-style license.</span>
 | |
| 00006 <span class="comment"></span>
 | |
| 00007 <span class="comment">    The maintainer of this library is James Turk (james@conceptofzero.net) </span>
 | |
| 00008 <span class="comment">     and the home of this Library is http://www.zengine.sourceforge.net</span>
 | |
| 00009 <span class="comment">*******************************************************************************/</span>
 | |
| 00010 
 | |
| 00025 <span class="preprocessor">#ifndef __ze_utility_h__</span>
 | |
| 00026 <span class="preprocessor"></span><span class="preprocessor">#define __ze_utility_h__</span>
 | |
| 00027 <span class="preprocessor"></span>
 | |
| 00028 <span class="preprocessor">#include "<a class="code" href="ZE__Includes_8h.html">ZE_Includes.h</a>"</span>
 | |
| 00029 
 | |
| <a name="l00030"></a><a class="code" href="namespaceZE.html">00030</a> <span class="keyword">namespace </span>ZE
 | |
| 00031 {
 | |
| 00032 
 | |
| 00042 string <a class="code" href="namespaceZE.html#a15">FormatStr</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *fmtstr, ...);
 | |
| 00043 
 | |
| 00045 <span class="comment">//Macros//</span>
 | |
| 00047 <span class="comment"></span>
 | |
| <a name="l00051"></a><a class="code" href="ZE__Utility_8h.html#a0">00051</a> <span class="comment"></span><span class="preprocessor">#define FreeImage(image) if(image){SDL_FreeSurface(image); image = NULL;}</span>
 | |
| 00052 <span class="preprocessor"></span>
 | |
| 00053 <span class="preprocessor">#ifdef USE_SDL_MIXER</span>
 | |
| 00054 <span class="preprocessor"></span>
 | |
| <a name="l00057"></a><a class="code" href="ZE__Utility_8h.html#a1">00057</a> <span class="preprocessor">#define FreeSound(sound) if(sound){Mix_FreeChunk(sound); sound = NULL;}</span>
 | |
| 00058 <span class="preprocessor"></span>
 | |
| <a name="l00061"></a><a class="code" href="ZE__Utility_8h.html#a2">00061</a> <span class="preprocessor">#define FreeMusic(music) if(music){Mix_FreeMusic(music); music = NULL;}</span>
 | |
| 00062 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
 | |
| 00063 <span class="preprocessor"></span>
 | |
| 00064 <span class="preprocessor">#ifdef USE_SDL_TTF</span>
 | |
| 00065 <span class="preprocessor"></span>
 | |
| <a name="l00068"></a><a class="code" href="ZE__Utility_8h.html#a3">00068</a> <span class="preprocessor">#define FreeFont(font) if(font){TTF_CloseFont(font); font = NULL;}</span>
 | |
| 00069 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
 | |
| 00070 <span class="preprocessor"></span>
 | |
| 00071 
 | |
| 00072 }
 | |
| 00073 
 | |
| 00074 <span class="preprocessor">#endif //__ze_utility_h__</span>
 | |
| 00075 <span class="preprocessor"></span>
 | |
| </pre></div><hr><address style="align: right;"><small>Generated on Sun Jan 19 01:04:50 2003 for ZEngine by
 | |
| <a href="http://www.doxygen.org/index.html">
 | |
| <img src="doxygen.png" alt="doxygen" align="middle" border=0 
 | |
| width=110 height=53></a>1.3-rc2 </small></address>
 | |
| </body>
 | |
| </html>
 | 
