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

/include/ZE_Utility.h File Reference


Detailed Description

File Header:
File: ZE_Utility.h
Description: Header file for ZEngine Utilities.
Author(s): James Turk
Id
ZE_Utility.h,v 1.1 2003/01/15 05:31:51 cozman Exp

Definition file for ZEngine Utilities which are used throughout the engine and can be used in conjunction with ZEngine.

#include "ZE_Includes.h"

Go to the source code of this file.

Namespaces

namespace  ZE

Defines

#define FreeImage(image)   if(image){SDL_FreeSurface(image); image = NULL;}
#define FreeSound(sound)   if(sound){Mix_FreeChunk(sound); sound = NULL;}
#define FreeMusic(music)   if(music){Mix_FreeMusic(music); music = NULL;}
#define FreeFont(font)   if(font){TTF_CloseFont(font); font = NULL;}


Define Documentation

#define FreeImage image       if(image){SDL_FreeSurface(image); image = NULL;}
 

Safely free an SDL_Surface* and set it to NULL.

#define FreeSound sound       if(sound){Mix_FreeChunk(sound); sound = NULL;}
 

Safely free a Mix_Chunk* and set it to NULL.

#define FreeMusic music       if(music){Mix_FreeMusic(music); music = NULL;}
 

Safely free a Mix_Music* and set it to NULL.

#define FreeFont font       if(font){TTF_CloseFont(font); font = NULL;}
 

Safely free a TTF_Font and set it to NULL.


Generated on Sun Jan 19 01:04:50 2003 for ZEngine by doxygen1.3-rc2