zengine/doc/html/classZE_1_1ZEngine.html
2003-01-18 22:54:50 +00:00

1916 lines
77 KiB
HTML

<!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>ZE::ZEngine class Reference</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> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>ZE::ZEngine Class Reference</h1><code>#include &lt;<a class="el" href="ZE__ZEngine_8h-source.html">ZE_ZEngine.h</a>&gt;</code>
<p>
<a href="classZE_1_1ZEngine-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
<a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> Singleton Class, accessible from anywhere in a ZEngine-based program by nature. Controls core elements of program and does majority of SDL wrapping. Also keeps track of loaded data and helps programs avoid memory leaks and dangling pointers.
<p>
<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a0">SetupDisplay</a> (int width, int height, int bpp, bool fullscreen)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Setup Display for SDL.</em> <a href="#a0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a1">SetupSound</a> (int rate, bool stereo)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Initialize Sound for SDL.</em> <a href="#a1"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a2">CreateDisplay</a> (string title, string icon="")</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Create Display with predefined settings.</em> <a href="#a2"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a3">CloseDisplay</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Quit SDL and any Subsystems.</em> <a href="#a3"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>SDL_Surface *&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a4">Display</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Allow access to Screen Surface.</em> <a href="#a4"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a5">Update</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Update display contents.</em> <a href="#a5"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a6">Clear</a> (float red=0.0f, float green=0.0f, float blue=0.0f, float alpha=1.0f)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Clear screen to a certain color (Black by default).</em> <a href="#a6"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a7">SetGL2D</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Setup OpenGL ortho mode.</em> <a href="#a7"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a8">Delay</a> (Uint32 milliseconds)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sleep for a certain amount of time.</em> <a href="#a8"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>Uint32&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a9">GetTime</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Global <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> time.</em> <a href="#a9"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a10">PauseTimer</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Pause <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a>.</em> <a href="#a10"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a11">UnpauseTimer</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Unpause <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a>.</em> <a href="#a11"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>double&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a12">GetFrameTime</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Seconds Per Frame.</em> <a href="#a12"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>double&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a13">GetFramerate</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Frames Per Second.</em> <a href="#a13"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a14">SetDesiredFramerate</a> (Uint8 rate)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Set Desired Framerate.</em> <a href="#a14"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>Uint8&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a15">GetDesiredFramerate</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Desired Framerate.</em> <a href="#a15"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a16">IsPaused</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Check Engine Paused State.</em> <a href="#a16"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a17">IsActive</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Find out if application is active.</em> <a href="#a17"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a18">RequestQuit</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Request A Quit.</em> <a href="#a18"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a19">QuitRequested</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Find out if user has requested to quit.</em> <a href="#a19"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a20">SetReloadNeed</a> (bool state)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Set State of ImagesNeedReload.</em> <a href="#a20"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a21">ImagesNeedReload</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Find out if images should be reloaded.</em> <a href="#a21"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a22">SetKeyRepeatRate</a> (int rate)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Set Key repeat rate.</em> <a href="#a22"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a23">KeyIsPressed</a> (SDLKey key)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Find the state of a key.</em> <a href="#a23"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a24">KeyPress</a> (SDLKey key)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Find if key has been pressed since last check.</em> <a href="#a24"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a25">HideCursor</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Hide mouse cursor.</em> <a href="#a25"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a26">ShowCursor</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Show mouse cursor.</em> <a href="#a26"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a27">MouseX</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get X Position of Mouse.</em> <a href="#a27"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a28">MouseY</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Y Position of Mouse.</em> <a href="#a28"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a29">LButtonPressed</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Status of Left Button.</em> <a href="#a29"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a30">RButtonPressed</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Status of Right Button.</em> <a href="#a30"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a31">MouseInRect</a> (SDL_Rect *rect)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Check if mouse is in given rectangle.</em> <a href="#a31"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a32">CheckEvents</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Check for Activation, Window Manager, and Quit Events.</em> <a href="#a32"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a33">SetErrorLog</a> (bool logAll, string logFile="")</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Modify Error Logging.</em> <a href="#a33"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a34">ReportError</a> (<a class="el" href="namespaceZE.html#a16">ZErrorCode</a> code, string desc="", string file="", unsigned int line=0)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Report an error.</em> <a href="#a34"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="namespaceZE.html#a16">ZErrorCode</a>&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a35">GetLastError</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get the last error.</em> <a href="#a35"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a36">WriteLog</a> (string str)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Write to the log.</em> <a href="#a36"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a37">FlushErrors</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Flush Stack of Errors to file.</em> <a href="#a37"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>SDL_Surface *&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a38">LoadImage</a> (string filename)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Load an Image.</em> <a href="#a38"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>Mix_Chunk *&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a39">LoadSound</a> (string filename)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Load a Sound.</em> <a href="#a39"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>Mix_Music *&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a40">LoadMusic</a> (string filename)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Load a Music File.</em> <a href="#a40"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>TTF_Font *&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a41">LoadFont</a> (string filename, int size)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Load a Font.</em> <a href="#a41"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a42">Width</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Current Display Width.</em> <a href="#a42"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a43">Height</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Current Display Height.</em> <a href="#a43"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a44">BPP</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Current Display BPP.</em> <a href="#a44"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a45">IsFullscreen</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Fullscreen setting.</em> <a href="#a45"></a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>ZEngine *&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#d0">GetInstance</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Instance.</em> <a href="#d0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#d1">ReleaseInstance</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Release Instance.</em> <a href="#d1"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>string&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#d2">GetVersion</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Current Version.</em> <a href="#d2"></a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Private Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#c0">ZEngine</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Constructor for <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a>.</em> <a href="#c0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#c1">LogError</a> (<a class="el" href="classZE_1_1ZError.html">ZError</a> error)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Writes an error to file.</em> <a href="#c1"></a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top><a name="o0" doxytag="ZE::ZEngine::mWidth"></a>
int&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o0">mWidth</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Width of Display.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o1" doxytag="ZE::ZEngine::mHeight"></a>
int&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o1">mHeight</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Height of Display.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o2" doxytag="ZE::ZEngine::mBPP"></a>
int&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o2">mBPP</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>BPP Setting of Display.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o3" doxytag="ZE::ZEngine::mFullscreen"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o3">mFullscreen</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Fullscreen setting of Display.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o4" doxytag="ZE::ZEngine::mRate"></a>
int&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o4">mRate</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sound Bitrate.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o5" doxytag="ZE::ZEngine::mStereo"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o5">mStereo</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Stereo setting of Sound Subsystem.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o6" doxytag="ZE::ZEngine::mScreen"></a>
SDL_Surface *&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o6">mScreen</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Pointer to Display.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o7" doxytag="ZE::ZEngine::mPaused"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o7">mPaused</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Keep track of paused state of game.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o8" doxytag="ZE::ZEngine::mUnpauseOnActive"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o8">mUnpauseOnActive</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Keep track of if <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> should unpause on active event.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o9" doxytag="ZE::ZEngine::mDesiredFramerate"></a>
Uint8&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o9">mDesiredFramerate</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Value framerate strives to be at, set by SetDesiredFramerate.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o10" doxytag="ZE::ZEngine::mNextUpdate"></a>
Uint32&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o10">mNextUpdate</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Time scheduled for next update (used for framerate locked movement).</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o11" doxytag="ZE::ZEngine::mLastPause"></a>
Uint32&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o11">mLastPause</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Keep track of time game was last paused.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o12" doxytag="ZE::ZEngine::mPausedTime"></a>
Uint32&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o12">mPausedTime</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Keep track of total globally paused time.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o13" doxytag="ZE::ZEngine::mLastTime"></a>
Uint32&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o13">mLastTime</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Keep track of last screen update time.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o14" doxytag="ZE::ZEngine::mSecPerFrame"></a>
double&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o14">mSecPerFrame</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Seconds per frame.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o15" doxytag="ZE::ZEngine::mNeedReload"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o15">mNeedReload</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>bool which is only set to true if the engine thinks the images need to be reloaded (loss of focus in fullscreen).</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o16" doxytag="ZE::ZEngine::mActive"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o16">mActive</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>bool describing Active or Inactive State of Game</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o17" doxytag="ZE::ZEngine::mQuit"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o17">mQuit</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>bool for checking if a Quit event has been detected</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o18" doxytag="ZE::ZEngine::mKeyIsPressed"></a>
Uint8 *&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o18">mKeyIsPressed</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Pointer to array of Keys.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o19" doxytag="ZE::ZEngine::mKeyPress"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o19">mKeyPress</a> [SDLK_LAST]</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Array of keys, used by KeyPress.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o20" doxytag="ZE::ZEngine::mMouseX"></a>
int&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o20">mMouseX</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>X Position of Mouse.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o21" doxytag="ZE::ZEngine::mMouseY"></a>
int&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o21">mMouseY</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Y Position of Mouse.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o22" doxytag="ZE::ZEngine::mMouseB"></a>
Uint8&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o22">mMouseB</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Mouse Button Information.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o23" doxytag="ZE::ZEngine::mErrorQueue"></a>
queue&lt; <a class="el" href="classZE_1_1ZError.html">ZError</a> &gt;&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o23">mErrorQueue</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Stack of Errors which have occured.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o24" doxytag="ZE::ZEngine::mCurError"></a>
<a class="el" href="classZE_1_1ZError.html">ZError</a>&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o24">mCurError</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Current error.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o25" doxytag="ZE::ZEngine::mLogAllErrors"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o25">mLogAllErrors</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Option controlling how logfile is used.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="o26" doxytag="ZE::ZEngine::mErrlog"></a>
FILE *&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o26">mErrlog</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>C-style FILE* for error logging.</em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Static Private Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top><a name="r0" doxytag="ZE::ZEngine::sInstance"></a>
ZEngine *&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#r0">sInstance</a> = NULL</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Static Pointer to Instance of <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> for Singleton.</em></font><br><br></td></tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="c0" doxytag="ZE::ZEngine::ZEngine"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> ZE::ZEngine::ZEngine </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap><code> [private]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Initialize <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> values to defaults. (Private so that only one instance may be created.) </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="d0" doxytag="ZE::ZEngine::GetInstance"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> ZEngine * ZE::ZEngine::GetInstance </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Static function, returns pointer to instance of <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a>, creating an instance if none exist. <dl compact><dt><b>Returns:</b></dt><dd>Instance to the <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a>. </dd></dl>
</td>
</tr>
</table>
<a name="d1" doxytag="ZE::ZEngine::ReleaseInstance"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::ReleaseInstance </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Release memory held by instance of engine and closes window. </td>
</tr>
</table>
<a name="d2" doxytag="ZE::ZEngine::GetVersion"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> string ZE::ZEngine::GetVersion </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get Version Number of <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a>. (Major.Minor.Extension#) <dl compact><dt><b>Returns:</b></dt><dd>string containing version number </dd></dl>
</td>
</tr>
</table>
<a name="a0" doxytag="ZE::ZEngine::SetupDisplay"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::SetupDisplay </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">int&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>width</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>int&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>height</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>int&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>bpp</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>bool&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>fullscreen</em></td>
</tr>
<tr>
<td></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Sets display parameters to specified parameters. (called before CreateDisplay)
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>width</em>&nbsp;</td><td>Desired width of screen or window. </td></tr>
<tr><td valign=top><em>height</em>&nbsp;</td><td>Desired height of screen or window. </td></tr>
<tr><td valign=top><em>bpp</em>&nbsp;</td><td>Desired BPP for screen (only works in fullscreen). </td></tr>
<tr><td valign=top><em>fullscreen</em>&nbsp;</td><td>A bool for fullscreen setting. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a name="a1" doxytag="ZE::ZEngine::SetupSound"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::SetupSound </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">int&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>rate</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>bool&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>stereo</em></td>
</tr>
<tr>
<td></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set sound settings to specified parameters. (called before CreateDisplay)
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>rate</em>&nbsp;</td><td>Desired sound bitrate. </td></tr>
<tr><td valign=top><em>stereo</em>&nbsp;</td><td>A bool for stereo setting. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a name="a2" doxytag="ZE::ZEngine::CreateDisplay"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool ZE::ZEngine::CreateDisplay </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">string&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>title</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>string&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>icon</em> = ""</td>
</tr>
<tr>
<td></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
SetupDisplay and SetupSound should be called prior to this to change settings, settings from those do not go into effect until this function is called. Specify no icon file to use default icon. Returns result of setting up <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a>, and logs error if false is returned (returns bool in versions &gt;= 0.8.2).
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>title</em>&nbsp;</td><td>Window Title. </td></tr>
<tr><td valign=top><em>icon</em>&nbsp;</td><td>Path to Icon File. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a name="a3" doxytag="ZE::ZEngine::CloseDisplay"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::CloseDisplay </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Shut down SDL (and SDL_ttf,SDL_mixer if necessary) You shouldn't ever have to call this, ReleaseInstance calls this for you. </td>
</tr>
</table>
<a name="a4" doxytag="ZE::ZEngine::Display"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> SDL_Surface * ZE::ZEngine::Display </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get pointer to screen SDL_Surface, allowing direct screen manipulation using SDL. <dl compact><dt><b>Returns:</b></dt><dd>Pointer to Display Surface. </dd></dl>
</td>
</tr>
</table>
<a name="a5" doxytag="ZE::ZEngine::Update"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::Update </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Swap OpenGL buffers, and update screen, if a desired framerate is set it will delay to stay under that rate. Must be called every frame. </td>
</tr>
</table>
<a name="a6" doxytag="ZE::ZEngine::Clear"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::Clear </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">float&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>red</em> = 0.0f, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>float&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>green</em> = 0.0f, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>float&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>blue</em> = 0.0f, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>float&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>alpha</em> = 1.0f</td>
</tr>
<tr>
<td></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Clears a rectangle on screen to a color, defaults to solid black. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>red</em>&nbsp;</td><td>Red component (0.0-1.0) of new color. </td></tr>
<tr><td valign=top><em>green</em>&nbsp;</td><td>Green component (0.0-1.0) of new color. </td></tr>
<tr><td valign=top><em>blue</em>&nbsp;</td><td>Blue component (0.0-1.0) of new color. </td></tr>
<tr><td valign=top><em>alpha</em>&nbsp;</td><td>Alpha component (0.0-1.0) of new color. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a name="a7" doxytag="ZE::ZEngine::SetGL2D"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::SetGL2D </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Sets the OpenGL scaled orthographic mode, called once at beginning, no need to call unless you change the OpenGL mode manually. </td>
</tr>
</table>
<a name="a8" doxytag="ZE::ZEngine::Delay"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::Delay </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">Uint32&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; <em>milliseconds</em> </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Freeze everything for given number of milliseconds. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>milliseconds</em>&nbsp;</td><td>Number of milliseconds to freeze. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a name="a9" doxytag="ZE::ZEngine::GetTime"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> Uint32 ZE::ZEngine::GetTime </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get active time since <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> initialization in milliseconds, paused time doesn't count. <dl compact><dt><b>Returns:</b></dt><dd>Number of active milliseconds since initialization. </dd></dl>
</td>
</tr>
</table>
<a name="a10" doxytag="ZE::ZEngine::PauseTimer"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::PauseTimer </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Pause <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> timer and all <a class="el" href="classZE_1_1ZTimer.html">ZTimer</a> objects that rely on <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a>. </td>
</tr>
</table>
<a name="a11" doxytag="ZE::ZEngine::UnpauseTimer"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::UnpauseTimer </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Unpause <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> timer and all <a class="el" href="classZE_1_1ZTimer.html">ZTimer</a> objects that rely on <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a>. </td>
</tr>
</table>
<a name="a12" doxytag="ZE::ZEngine::GetFrameTime"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> double ZE::ZEngine::GetFrameTime </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get double that describes the time passed between screen updates. (should be used for Framerate Independant Movement) <dl compact><dt><b>Returns:</b></dt><dd>Time between screen updates. </dd></dl>
</td>
</tr>
</table>
<a name="a13" doxytag="ZE::ZEngine::GetFramerate"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> double ZE::ZEngine::GetFramerate </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get double representing current (approximate) FPS. This value is always the same as 1/GetFrameTime(). <dl compact><dt><b>Since:</b></dt><dd>0.8.2 </dd></dl>
<dl compact><dt><b>Returns:</b></dt><dd>Current Framerate. </dd></dl>
</td>
</tr>
</table>
<a name="a14" doxytag="ZE::ZEngine::SetDesiredFramerate"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::SetDesiredFramerate </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">Uint8&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; <em>rate</em> </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Sets desired framerate, if engine gets ahead of desired rate during a frame it will stall in Update until current framerate is closer to that desired. Acceptable values are 1-255, setting this value to 0 will disable this feature. (Desired framerate is disabled upon initialization of <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a>.) <dl compact><dt><b>Since:</b></dt><dd>0.8.2 </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>rate</em>&nbsp;</td><td>Desired framerate 1-255, or 0 to disable. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a name="a15" doxytag="ZE::ZEngine::GetDesiredFramerate"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> Uint8 ZE::ZEngine::GetDesiredFramerate </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get desired framerate set by SetDesiredFramerate. <dl compact><dt><b>Since:</b></dt><dd>0.8.2 </dd></dl>
<dl compact><dt><b>Returns:</b></dt><dd>Current setting for desired framerate. </dd></dl>
</td>
</tr>
</table>
<a name="a16" doxytag="ZE::ZEngine::IsPaused"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool ZE::ZEngine::IsPaused </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Find out if engine timer is paused. <dl compact><dt><b>Returns:</b></dt><dd>Paused State of engine. </dd></dl>
</td>
</tr>
</table>
<a name="a17" doxytag="ZE::ZEngine::IsActive"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool ZE::ZEngine::IsActive </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Function to find out if application currently has focus. <dl compact><dt><b>Returns:</b></dt><dd>bool telling active/inactive state of application. </dd></dl>
</td>
</tr>
</table>
<a name="a18" doxytag="ZE::ZEngine::RequestQuit"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::RequestQuit </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Tell the engine that it should behave as if a Quit was requested, does not call any shutdown functions. </td>
</tr>
</table>
<a name="a19" doxytag="ZE::ZEngine::QuitRequested"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool ZE::ZEngine::QuitRequested </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Function to find out if user or operating system has requested program cease execution, can be set by Alt-F4, SDL_Quit event or <a class="el" href="classZE_1_1ZEngine.html#a18">ZEngine::RequestQuit()</a>. <dl compact><dt><b>Returns:</b></dt><dd>bool telling if quit has been requested. </dd></dl>
</td>
</tr>
</table>
<a name="a20" doxytag="ZE::ZEngine::SetReloadNeed"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::SetReloadNeed </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">bool&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; <em>state</em> </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>state</em>&nbsp;</td><td>False if images need to be reloaded, True if images have been reloaded. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a name="a21" doxytag="ZE::ZEngine::ImagesNeedReload"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool ZE::ZEngine::ImagesNeedReload </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Function that is good to call every frame to check if images should be reloaded, usually only caused by loss of focus in fullscreen. <dl compact><dt><b>Returns:</b></dt><dd>bool, True if images should be reloaded, false otherwise. </dd></dl>
</td>
</tr>
</table>
<a name="a22" doxytag="ZE::ZEngine::SetKeyRepeatRate"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::SetKeyRepeatRate </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">int&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; <em>rate</em> </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Calls SDL_EnableKeyRepeat(rate,rate) because usually this is the desired movement style for games. The rate is set to 30 upon the creation of the display, pass zero to disable this. SDL_EnableKeyRepeat can be called separately: <a href="http://sdldoc.csn.ul.ie/sdlenablekeyrepeat.php.">http://sdldoc.csn.ul.ie/sdlenablekeyrepeat.php.</a>
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>rate</em>&nbsp;</td><td>Desired key repeat rate. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a name="a23" doxytag="ZE::ZEngine::KeyIsPressed"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool ZE::ZEngine::KeyIsPressed </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">SDLKey&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; <em>key</em> </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Function returns true/false based on if key is currently pressed or not. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>key</em>&nbsp;</td><td>Code of key to find status of. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>State of requested key. </dd></dl>
</td>
</tr>
</table>
<a name="a24" doxytag="ZE::ZEngine::KeyPress"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool ZE::ZEngine::KeyPress </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">SDLKey&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; <em>key</em> </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Function returns true/false based on if key has been pressed since last check. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>key</em>&nbsp;</td><td>Code of key to find status of. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>State of requested key. </dd></dl>
</td>
</tr>
</table>
<a name="a25" doxytag="ZE::ZEngine::HideCursor"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::HideCursor </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Hide the system mouse cursor. </td>
</tr>
</table>
<a name="a26" doxytag="ZE::ZEngine::ShowCursor"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::ShowCursor </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Show the system mouse cursor. </td>
</tr>
</table>
<a name="a27" doxytag="ZE::ZEngine::MouseX"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> int ZE::ZEngine::MouseX </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Find X Position of Mouse on screen. <dl compact><dt><b>Returns:</b></dt><dd>X Position of Mouse. </dd></dl>
</td>
</tr>
</table>
<a name="a28" doxytag="ZE::ZEngine::MouseY"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> int ZE::ZEngine::MouseY </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Find Y Position of Mouse on screen. <dl compact><dt><b>Returns:</b></dt><dd>Y Position of Mouse. </dd></dl>
</td>
</tr>
</table>
<a name="a29" doxytag="ZE::ZEngine::LButtonPressed"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool ZE::ZEngine::LButtonPressed </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get pressed status of left button of mouse. <dl compact><dt><b>Returns:</b></dt><dd>true if left button is pressed, false otherwise. </dd></dl>
</td>
</tr>
</table>
<a name="a30" doxytag="ZE::ZEngine::RButtonPressed"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool ZE::ZEngine::RButtonPressed </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get pressed status of right button of mouse. <dl compact><dt><b>Returns:</b></dt><dd>true if right button is pressed, false otherwise. </dd></dl>
</td>
</tr>
</table>
<a name="a31" doxytag="ZE::ZEngine::MouseInRect"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool ZE::ZEngine::MouseInRect </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">SDL_Rect *&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; <em>rect</em> </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return status of mouse in current rectangle (used for buttons) <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>rect</em>&nbsp;</td><td>Rectangle to check if mouse is in. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>true if mouse is in rectangle, false otherwise </dd></dl>
</td>
</tr>
</table>
<a name="a32" doxytag="ZE::ZEngine::CheckEvents"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::CheckEvents </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Cycle through event queue, processing events, updating all Event Related variables, should be called once per frame. </td>
</tr>
</table>
<a name="c1" doxytag="ZE::ZEngine::LogError"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::LogError </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classZE_1_1ZError.html">ZError</a>&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; <em>error</em> </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap><code> [private]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Writes error to current error file. <dl compact><dt><b>Since:</b></dt><dd>0.8.2 </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>error</em>&nbsp;</td><td><a class="el" href="classZE_1_1ZError.html">ZError</a> to write to file. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a name="a33" doxytag="ZE::ZEngine::SetErrorLog"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::SetErrorLog </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">bool&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>logAll</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>string&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>logFile</em> = ""</td>
</tr>
<tr>
<td></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Change the way errors are logged and the file they are logged to, before calling this errors are logged to stderr. (SDL may define stderr.txt on some platforms.) <dl compact><dt><b>Since:</b></dt><dd>0.8.2 </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>logAll</em>&nbsp;</td><td>If set to true every error will be written to file instead of stored in the logfile. </td></tr>
<tr><td valign=top><em>logFile</em>&nbsp;</td><td>Name of file to use as log, passing in stderr or stdio will set the log to the C streams. Passing in nothing will not change the current error log file, which defaults to stderr. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a name="a34" doxytag="ZE::ZEngine::ReportError"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::ReportError </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="namespaceZE.html#a16">ZErrorCode</a>&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>code</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>string&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>desc</em> = "", </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>string&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>file</em> = "", </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>unsigned int&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>line</em> = 0</td>
</tr>
<tr>
<td></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Adds the error to the the error queue, and sets the current error to this error. <dl compact><dt><b>Since:</b></dt><dd>0.8.2 </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>code</em>&nbsp;</td><td>ZErrorCode of error. </td></tr>
<tr><td valign=top><em>desc</em>&nbsp;</td><td>Optional string describing error. </td></tr>
<tr><td valign=top><em>file</em>&nbsp;</td><td>Optional argument specifying the file the error occured in. </td></tr>
<tr><td valign=top><em>line</em>&nbsp;</td><td>Optional argument specifying the line the error occured on. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a name="a35" doxytag="ZE::ZEngine::GetLastError"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="namespaceZE.html#a16">ZErrorCode</a> ZE::ZEngine::GetLastError </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get the last error reported. <dl compact><dt><b>Since:</b></dt><dd>0.8.2 </dd></dl>
<dl compact><dt><b>Returns:</b></dt><dd>ZErrorCode of last error reported. </dd></dl>
</td>
</tr>
</table>
<a name="a36" doxytag="ZE::ZEngine::WriteLog"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::WriteLog </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">string&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; <em>str</em> </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Write a string to the log, allowing special usage of the error log. <dl compact><dt><b>Since:</b></dt><dd>0.8.2 </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>str</em>&nbsp;</td><td>String to write to log file. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a name="a37" doxytag="ZE::ZEngine::FlushErrors"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void ZE::ZEngine::FlushErrors </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Write the error stack to the error log. <dl compact><dt><b>Since:</b></dt><dd>0.8.2 </dd></dl>
</td>
</tr>
</table>
<a name="a38" doxytag="ZE::ZEngine::LoadImage"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> SDL_Surface * ZE::ZEngine::LoadImage </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">string&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; <em>filename</em> </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Loads an Image to an ImageData class which keeps vital information on the Image. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>filename</em>&nbsp;</td><td>path to file to load. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A SDL_Surface pointer to data. </dd></dl>
</td>
</tr>
</table>
<a name="a39" doxytag="ZE::ZEngine::LoadSound"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> Mix_Chunk* ZE::ZEngine::LoadSound </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">string&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; <em>filename</em> </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Loads a Sound to a SoundData class which keeps vital information on the Sound <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>filename</em>&nbsp;</td><td>path to file to load. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A Mix_Chunk pointer to data. </dd></dl>
</td>
</tr>
</table>
<a name="a40" doxytag="ZE::ZEngine::LoadMusic"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> Mix_Music* ZE::ZEngine::LoadMusic </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">string&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; <em>filename</em> </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Loads a Music Clip to a MusicData class which keeps vital information on the Music Data <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>filename</em>&nbsp;</td><td>path to file to load. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A Mix_Music pointer to data. </dd></dl>
</td>
</tr>
</table>
<a name="a41" doxytag="ZE::ZEngine::LoadFont"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> TTF_Font* ZE::ZEngine::LoadFont </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">string&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>filename</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>int&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>size</em></td>
</tr>
<tr>
<td></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Loads a Font to a FontData class which keeps vital information on the Font <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>filename</em>&nbsp;</td><td>path to file to load. </td></tr>
<tr><td valign=top><em>size</em>&nbsp;</td><td>point size of font </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A TTF_Font pointer to data. </dd></dl>
</td>
</tr>
</table>
<a name="a42" doxytag="ZE::ZEngine::Width"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> int ZE::ZEngine::Width </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get Width of Window or Fullscreen mode. <dl compact><dt><b>Returns:</b></dt><dd>Width of Display. </dd></dl>
</td>
</tr>
</table>
<a name="a43" doxytag="ZE::ZEngine::Height"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> int ZE::ZEngine::Height </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get Height of Window or Fullscreen mode. <dl compact><dt><b>Returns:</b></dt><dd>Height of Display. </dd></dl>
</td>
</tr>
</table>
<a name="a44" doxytag="ZE::ZEngine::BPP"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> int ZE::ZEngine::BPP </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get BPP of Window or Fullscreen mode. <dl compact><dt><b>Returns:</b></dt><dd>BPP of Display. </dd></dl>
</td>
</tr>
</table>
<a name="a45" doxytag="ZE::ZEngine::IsFullscreen"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool ZE::ZEngine::IsFullscreen </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get Fullscreen setting of Display. <dl compact><dt><b>Returns:</b></dt><dd>True if Fullscreen, False if Windowed </dd></dl>
</td>
</tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li>/include/<a class="el" href="ZE__ZEngine_8h-source.html">ZE_ZEngine.h</a><li>/src/<a class="el" href="ZE__ZEngine_8cpp.html">ZE_ZEngine.cpp</a></ul>
<hr><address style="align: right;"><small>Generated on Sat Jan 18 17:53:20 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>