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

/home/James/ZEngine-dev/include/ZE_Macros.h File Reference


Detailed Description

File Header:
File: ZE_Macros.h
Description: Header file for ZEngine Macros.
Author(s): James Turk

Definition file for ZEngine Macros which are used throughout the engine.

#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 Wed Dec 4 19:01:30 2002 for ZEngine by doxygen1.3-rc1