<!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>/home/James/ZEngine-dev/include/ZE_DataPtr.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.3-rc1 --> <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>/home/James/ZEngine-dev/include/ZE_DataPtr.h</h1><a href="ZE__DataPtr_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 SDL Game Development.</span> 00003 <span class="comment"> Copyright (C) 2002 ConceptOfZero.net</span> 00004 <span class="comment"></span> 00005 <span class="comment"> Licensed under the BSD License, see licensing.txt.</span> 00006 <span class="comment"></span> 00007 <span class="comment"> The maintainer of this library is James Turk (jturk@conceptofzero.net) </span> 00008 <span class="comment"> and the home of this Library is http://www.conceptofzero.net/</span> 00009 <span class="comment">*******************************************************************************/</span> 00010 00025 <span class="preprocessor">#ifndef __ze_dataptr_h__</span> 00026 <span class="preprocessor"></span><span class="preprocessor">#define __ze_dataptr_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 00030 <span class="keyword">namespace </span>ZE 00031 { 00032 00034 <span class="comment">//Utility Classes Used Throughout ZEngine//</span> 00036 <span class="comment"></span> 00042 <span class="comment"></span><span class="keyword">class </span>ImageData 00043 { 00044 <span class="keyword">public</span>: 00046 SDL_Surface *<a class="code" href="classZE_1_1ImageData.html#m0">image</a>; 00048 string <a class="code" href="classZE_1_1ImageData.html#m1">filename</a>; 00054 <a class="code" href="classZE_1_1ImageData.html#a0">ImageData</a>() { <a class="code" href="classZE_1_1ImageData.html#m0">image</a> = NULL; }; 00055 }; 00056 00057 <span class="preprocessor">#ifdef USE_SDL_TTF</span> 00058 <span class="preprocessor"></span> 00064 <span class="keyword">class </span>FontData 00065 { 00066 <span class="keyword">public</span>: 00068 TTF_Font *<a class="code" href="classZE_1_1FontData.html#m0">font</a>; 00070 string <a class="code" href="classZE_1_1FontData.html#m1">filename</a>; 00076 <a class="code" href="classZE_1_1FontData.html#a0">FontData</a>() { <a class="code" href="classZE_1_1FontData.html#m0">font</a> = NULL; }; 00077 }; 00078 00079 <span class="preprocessor">#endif //USE_SDL_TTF</span> 00080 <span class="preprocessor"></span> 00081 <span class="preprocessor">#ifdef USE_SDL_MIXER</span> 00082 <span class="preprocessor"></span> 00088 <span class="keyword">class </span>SoundData 00089 { 00090 <span class="keyword">public</span>: 00092 Mix_Chunk *<a class="code" href="classZE_1_1SoundData.html#m0">sound</a>; 00094 string <a class="code" href="classZE_1_1SoundData.html#m1">filename</a>; 00100 <a class="code" href="classZE_1_1SoundData.html#a0">SoundData</a>() { <a class="code" href="classZE_1_1SoundData.html#m0">sound</a> = NULL; }; 00101 }; 00102 00108 <span class="keyword">class </span>MusicData 00109 { 00110 <span class="keyword">public</span>: 00112 Mix_Music *<a class="code" href="classZE_1_1MusicData.html#m0">music</a>; 00114 string <a class="code" href="classZE_1_1MusicData.html#m1">filename</a>; 00120 <a class="code" href="classZE_1_1MusicData.html#a0">MusicData</a>() { <a class="code" href="classZE_1_1MusicData.html#m0">music</a> = NULL; }; 00121 }; 00122 00123 <span class="preprocessor">#endif //USE_SDL_MIXER</span> 00124 <span class="preprocessor"></span> 00125 } 00126 00127 <span class="preprocessor">#endif //__ze_dataptr_h__</span> </pre></div><hr><address style="align: right;"><small>Generated on Wed Nov 20 01:18:05 2002 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-rc1 </small></address> </body> </html>