zengine/doc/html/classZE_1_1ZEngine.html

2295 lines
92 KiB
HTML
Raw Normal View History

2003-01-18 22:54:50 +00:00
<!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>
2003-04-27 18:54:58 +00:00
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</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>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a4">ToggleFullscreen</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Toggle fullscreen/windowed mode.</em> <a href="#a4"></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#a5">Initialized</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Check state of <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a>.</em> <a href="#a5"></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#a6">Display</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Allow access to Screen Surface.</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">Update</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Update display contents.</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">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="#a8"></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#a9">SetGL2D</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Setup OpenGL ortho mode.</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">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="#a10"></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#a11">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="#a11"></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#a12">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="#a12"></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#a13">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="#a13"></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#a14">GetFrameTime</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Seconds Per Frame.</em> <a href="#a14"></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#a15">GetFramerate</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Frames Per Second.</em> <a href="#a15"></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#a16">SetDesiredFramerate</a> (Uint8 rate)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Set Desired Framerate.</em> <a href="#a16"></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#a17">GetDesiredFramerate</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Desired Framerate.</em> <a href="#a17"></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#a18">IsPaused</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Check Engine Paused State.</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">IsActive</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Find out if application is active.</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">RequestQuit</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Request A Quit.</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">QuitRequested</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Find out if user has requested to quit.</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">SetReloadNeed</a> (bool state)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Set State of ImagesNeedReload.</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">ImagesNeedReload</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Find out if images should be reloaded.</em> <a href="#a23"></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#a24">SetKeyRepeatRate</a> (int rate)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Set Key repeat rate.</em> <a href="#a24"></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#a25">KeyIsPressed</a> (SDLKey key)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Find the state of a key.</em> <a href="#a25"></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#a26">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="#a26"></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#a27">HideCursor</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Hide mouse cursor.</em> <a href="#a27"></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#a28">ShowCursor</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Show mouse cursor.</em> <a href="#a28"></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#a29">MouseX</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get X Position of Mouse.</em> <a href="#a29"></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#a30">MouseY</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Y Position of Mouse.</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">LButtonPressed</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Status of Left Button.</em> <a href="#a31"></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#a32">RButtonPressed</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Status of Right Button.</em> <a href="#a32"></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#a33">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="#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">CheckEvents</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Check for Activation, Window Manager, and Quit Events.</em> <a href="#a34"></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#a35">SetEventFilter</a> (SDL_EventFilter filter)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Add a SDL Event Filter for user processing of events.</em> <a href="#a35"></a><em></em></font><br><br></td></tr>
2003-04-27 22:05:04 +00:00
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a36">InitPhysFS</a> (string argv)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Initialize PhysicsFS.</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">AddPhysFSDir</a> (string dir)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Add Directory to PhysFS Search Path.</em> <a href="#a37"></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#a38">SetErrorLog</a> (bool logAll, string logFile="")</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Modify Error Logging.</em> <a href="#a38"></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#a39">ReportError</a> (<a class="el" href="namespaceZE.html#a20">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="#a39"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="namespaceZE.html#a20">ZErrorCode</a>&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a40">GetLastError</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get the last error.</em> <a href="#a40"></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#a41">WriteLog</a> (string str)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Write to the log.</em> <a href="#a41"></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#a42">FlushErrors</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Flush Stack of Errors to file.</em> <a href="#a42"></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#a43">SeedRandom</a> (unsigned long seed)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Seed random number generator.</em> <a href="#a43"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>unsigned long&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a44">RandLong</a> (unsigned long max)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Obtain random integer [0,max).</em> <a href="#a44"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>long&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#a45">RandLong</a> (long min, long max)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Obtain random integer [min,max].</em> <a href="#a45"></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#a46">RandDouble</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Obtain random double [0,1).</em> <a href="#a46"></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#a47">RandDouble</a> (double min, double max)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Obtain random double [min,max].</em> <a href="#a47"></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#a48">LoadImage</a> (string filename)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Load an Image.</em> <a href="#a48"></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#a49">LoadSound</a> (string filename)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Load a Sound.</em> <a href="#a49"></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#a50">LoadMusic</a> (string filename)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Load a Music File.</em> <a href="#a50"></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#a51">LoadFont</a> (string filename, int size)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Load a Font.</em> <a href="#a51"></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#a52">Width</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Current Display Width.</em> <a href="#a52"></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#a53">Height</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Current Display Height.</em> <a href="#a53"></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#a54">BPP</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Current Display BPP.</em> <a href="#a54"></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#a55">IsFullscreen</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Get Fullscreen setting.</em> <a href="#a55"></a><em></em></font><br><br></td></tr>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<tr><td nowrap align=right valign=top><a name="o4" doxytag="ZE::ZEngine::mInitialized"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o4">mInitialized</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>If <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> display has been setup.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o5" doxytag="ZE::ZEngine::mScreen"></a>
SDL_Surface *&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o5">mScreen</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>Pointer to Display.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o6" doxytag="ZE::ZEngine::mPaused"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o6">mPaused</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>Keep track of paused state of game.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o7" doxytag="ZE::ZEngine::mUnpauseOnActive"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o7">mUnpauseOnActive</a></td></tr>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o8" doxytag="ZE::ZEngine::mDesiredFramerate"></a>
Uint8&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o8">mDesiredFramerate</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>Value framerate strives to be at, set by SetDesiredFramerate.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o9" doxytag="ZE::ZEngine::mNextUpdate"></a>
Uint32&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o9">mNextUpdate</a></td></tr>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o10" doxytag="ZE::ZEngine::mLastPause"></a>
Uint32&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o10">mLastPause</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>Keep track of time game was last paused.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o11" doxytag="ZE::ZEngine::mPausedTime"></a>
Uint32&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o11">mPausedTime</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>Keep track of total globally paused time.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o12" doxytag="ZE::ZEngine::mLastTime"></a>
Uint32&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o12">mLastTime</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>Keep track of last screen update time.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o13" doxytag="ZE::ZEngine::mSecPerFrame"></a>
double&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o13">mSecPerFrame</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>Seconds per frame.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o14" doxytag="ZE::ZEngine::mNeedReload"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o14">mNeedReload</a></td></tr>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o15" doxytag="ZE::ZEngine::mActive"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o15">mActive</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>bool describing Active or Inactive State of Game</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o16" doxytag="ZE::ZEngine::mQuit"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o16">mQuit</a></td></tr>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o17" doxytag="ZE::ZEngine::mKeyIsPressed"></a>
Uint8 *&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o17">mKeyIsPressed</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>Pointer to array of Keys.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o18" doxytag="ZE::ZEngine::mKeyPress"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o18">mKeyPress</a> [SDLK_LAST]</td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>Array of keys, used by KeyPress.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o19" doxytag="ZE::ZEngine::mMouseX"></a>
int&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o19">mMouseX</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>X Position of Mouse.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o20" doxytag="ZE::ZEngine::mMouseY"></a>
int&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o20">mMouseY</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>Y Position of Mouse.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o21" doxytag="ZE::ZEngine::mMouseB"></a>
Uint8&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o21">mMouseB</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>Mouse Button Information.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o22" 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#o22">mErrorQueue</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>Stack of Errors which have occured.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o23" 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#o23">mCurError</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>Current error.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o24" doxytag="ZE::ZEngine::mLogAllErrors"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o24">mLogAllErrors</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>Option controlling how logfile is used.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o25" doxytag="ZE::ZEngine::mErrlog"></a>
FILE *&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o25">mErrlog</a></td></tr>
2003-01-18 22:54:50 +00:00
<tr><td>&nbsp;</td><td><font size=-1><em>C-style FILE* for error logging.</em></font><br><br></td></tr>
2003-04-27 18:54:58 +00:00
<tr><td nowrap align=right valign=top><a name="o26" doxytag="ZE::ZEngine::mRate"></a>
int&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o26">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="o27" doxytag="ZE::ZEngine::mStereo"></a>
bool&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZEngine.html#o27">mStereo</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Stereo setting of Sound Subsystem.</em></font><br><br></td></tr>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<tr><td valign=top><em>bpp</em>&nbsp;</td><td>Desired BPP for screen, generally use 8,16 or 32, pass -1 if you want <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> to guess the best choice. </td></tr>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 18:54:58 +00:00
Set sound settings to specified parameters. (If not called before CreateDisplay rate will default to 22050+mono)
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 18:54:58 +00:00
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 for OS. Returns result of setting up <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a>, and logs error if false is returned (Trys not to fail + returns bool in versions &gt;= 0.8.2).
2003-01-18 22:54:50 +00:00
<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>
2003-01-19 06:06:20 +00:00
<dl compact><dt><b>Returns:</b></dt><dd>result of setting up the display, true if everything went ok, false if any setup failed (check GetLastError). </dd></dl>
2003-01-18 22:54:50 +00:00
</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>
2003-01-28 21:33:02 +00:00
<a name="a4" doxytag="ZE::ZEngine::ToggleFullscreen"></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::ToggleFullscreen </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>
Safely toggles fullscreen/windowed mode, generally toggling modes will bring the need to reload images so it will set the ImagesNeedReload state to true. <dl compact><dt><b>Since:</b></dt><dd>0.8.2 </dd></dl>
</td>
</tr>
</table>
<a name="a5" doxytag="ZE::ZEngine::Initialized"></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::Initialized </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>
Checks if <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> display has been properly setup. <dl compact><dt><b>Since:</b></dt><dd>0.8.2 </dd></dl>
<dl compact><dt><b>Returns:</b></dt><dd>Boolean status of <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a>, true if CreateDisplay has been successfully called, false if <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> has no display. </dd></dl>
</td>
</tr>
</table>
<a name="a6" doxytag="ZE::ZEngine::Display"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a7" doxytag="ZE::ZEngine::Update"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a8" doxytag="ZE::ZEngine::Clear"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a9" doxytag="ZE::ZEngine::SetGL2D"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a10" doxytag="ZE::ZEngine::Delay"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a11" doxytag="ZE::ZEngine::GetTime"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a12" doxytag="ZE::ZEngine::PauseTimer"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a13" doxytag="ZE::ZEngine::UnpauseTimer"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a14" doxytag="ZE::ZEngine::GetFrameTime"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a15" doxytag="ZE::ZEngine::GetFramerate"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a16" doxytag="ZE::ZEngine::SetDesiredFramerate"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a17" doxytag="ZE::ZEngine::GetDesiredFramerate"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a18" doxytag="ZE::ZEngine::IsPaused"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a19" doxytag="ZE::ZEngine::IsActive"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a20" doxytag="ZE::ZEngine::RequestQuit"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a21" doxytag="ZE::ZEngine::QuitRequested"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
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#a20">ZEngine::RequestQuit()</a>. <dl compact><dt><b>Returns:</b></dt><dd>bool telling if quit has been requested. </dd></dl>
2003-01-18 22:54:50 +00:00
</td>
</tr>
</table>
2003-01-28 21:33:02 +00:00
<a name="a22" doxytag="ZE::ZEngine::SetReloadNeed"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a23" doxytag="ZE::ZEngine::ImagesNeedReload"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a24" doxytag="ZE::ZEngine::SetKeyRepeatRate"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 18:54:58 +00:00
Calls SDL_EnableKeyRepeat(rate,rate) because usually this is the desired movement style for games. 0 to disable. If 2 different values are needed SDL_EnableKeyRepeat can be called separately: <a href="http://sdldoc.csn.ul.ie/sdlenablekeyrepeat.php.">http://sdldoc.csn.ul.ie/sdlenablekeyrepeat.php.</a>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a25" doxytag="ZE::ZEngine::KeyIsPressed"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a26" doxytag="ZE::ZEngine::KeyPress"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a27" doxytag="ZE::ZEngine::HideCursor"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a28" doxytag="ZE::ZEngine::ShowCursor"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a29" doxytag="ZE::ZEngine::MouseX"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a30" doxytag="ZE::ZEngine::MouseY"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a31" doxytag="ZE::ZEngine::LButtonPressed"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a32" doxytag="ZE::ZEngine::RButtonPressed"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a33" doxytag="ZE::ZEngine::MouseInRect"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a34" doxytag="ZE::ZEngine::CheckEvents"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-01-28 21:33:02 +00:00
<a name="a35" doxytag="ZE::ZEngine::SetEventFilter"></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::SetEventFilter </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">SDL_EventFilter&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; <em>filter</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>
This is only needed when you need tight control with <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a>. The parameter is simply passed to SDL_SetEventFilter, generally only those with a good amount of SDL experience should use this function or ZEngine's internal message state could be corrupted. For more information on SDL_SetEventFilter see <a href="http://sdldoc.csn.ul.ie/sdlseteventfilter.php.">http://sdldoc.csn.ul.ie/sdlseteventfilter.php.</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>filter</em>&nbsp;</td><td>An SDL_EventFilter (A function that takes a const SDL_Event* and returns 0 if the event should be removed from the event queue and 1 otherwise.) </td></tr>
</table>
</dl>
</td>
</tr>
</table>
2003-04-27 22:05:04 +00:00
<a name="a36" doxytag="ZE::ZEngine::InitPhysFS"></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::InitPhysFS </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>argv</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 up PhysicsFS, must be called when application is started. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>argv</em>&nbsp;</td><td>argv[0] from application's main. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a name="a37" doxytag="ZE::ZEngine::AddPhysFSDir"></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::AddPhysFSDir </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>dir</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>
Add Directory to PhysicsFS search path, the path it looks in for files when attempting to load. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>dir</em>&nbsp;</td><td>Directory to add to search path. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 22:05:04 +00:00
<a name="a38" doxytag="ZE::ZEngine::SetErrorLog"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 22:05:04 +00:00
<a name="a39" doxytag="ZE::ZEngine::ReportError"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 18:54:58 +00:00
<td class="md" nowrap valign="top"><a class="el" href="namespaceZE.html#a20">ZErrorCode</a>&nbsp;</td>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 22:05:04 +00:00
<a name="a40" doxytag="ZE::ZEngine::GetLastError"></a><p>
2003-01-18 22:54:50 +00:00
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
2003-04-27 18:54:58 +00:00
<td class="md" nowrap valign="top"> <a class="el" href="namespaceZE.html#a20">ZErrorCode</a> ZE::ZEngine::GetLastError </td>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 22:05:04 +00:00
<a name="a41" doxytag="ZE::ZEngine::WriteLog"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 22:05:04 +00:00
<a name="a42" doxytag="ZE::ZEngine::FlushErrors"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 22:05:04 +00:00
<a name="a43" doxytag="ZE::ZEngine::SeedRandom"></a><p>
2003-04-27 21:50:43 +00:00
<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::SeedRandom </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">unsigned long&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; <em>seed</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>
Reseed Mersenne Twister (MT19937) random number generator. NOTE: Generator is initialized upon creation of <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> using time. (Faster and more random than rand(), see src/external/mt19937ar.c) <dl compact><dt><b>Since:</b></dt><dd>0.8.3 </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>seed</em>&nbsp;</td><td>Seed for random sequence. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
2003-04-27 22:05:04 +00:00
<a name="a44" doxytag="ZE::ZEngine::RandLong"></a><p>
2003-04-27 21:50:43 +00:00
<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"> unsigned long ZE::ZEngine::RandLong </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">unsigned long&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; <em>max</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>
Obtain random long l where 0 &lt;= l &lt; max. <dl compact><dt><b>Since:</b></dt><dd>0.8.3 </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>max</em>&nbsp;</td><td>Limit for random number. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Random unsigned long. </dd></dl>
</td>
</tr>
</table>
2003-04-27 22:05:04 +00:00
<a name="a45" doxytag="ZE::ZEngine::RandLong"></a><p>
2003-04-27 21:50:43 +00:00
<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"> long ZE::ZEngine::RandLong </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">long&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>min</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>long&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>max</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>
Obtain random long l where min &lt;= l &lt;= max. <dl compact><dt><b>Since:</b></dt><dd>0.8.3 </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>min</em>&nbsp;</td><td>Lower limit for random number. </td></tr>
<tr><td valign=top><em>max</em>&nbsp;</td><td>Upper limit for random number. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Random long. </dd></dl>
</td>
</tr>
</table>
2003-04-27 22:05:04 +00:00
<a name="a46" doxytag="ZE::ZEngine::RandDouble"></a><p>
2003-04-27 21:50:43 +00:00
<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::RandDouble </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>
Obtain random double d where 0 &lt;= d &lt; 1. <dl compact><dt><b>Since:</b></dt><dd>0.8.3 </dd></dl>
<dl compact><dt><b>Returns:</b></dt><dd>Random double [0,1). </dd></dl>
</td>
</tr>
</table>
2003-04-27 22:05:04 +00:00
<a name="a47" doxytag="ZE::ZEngine::RandDouble"></a><p>
2003-04-27 21:50:43 +00:00
<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::RandDouble </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">double&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>min</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>double&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>max</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>
Obtain random double d where min &lt;= d &lt;= max. <dl compact><dt><b>Since:</b></dt><dd>0.8.3 </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>min</em>&nbsp;</td><td>Lower limit for random number. </td></tr>
<tr><td valign=top><em>max</em>&nbsp;</td><td>Upper limit for random number. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Random double [min,max]. </dd></dl>
</td>
</tr>
</table>
2003-04-27 22:05:04 +00:00
<a name="a48" doxytag="ZE::ZEngine::LoadImage"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 22:05:04 +00:00
<a name="a49" doxytag="ZE::ZEngine::LoadSound"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 22:05:04 +00:00
<a name="a50" doxytag="ZE::ZEngine::LoadMusic"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 22:05:04 +00:00
<a name="a51" doxytag="ZE::ZEngine::LoadFont"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 22:05:04 +00:00
<a name="a52" doxytag="ZE::ZEngine::Width"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 22:05:04 +00:00
<a name="a53" doxytag="ZE::ZEngine::Height"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 22:05:04 +00:00
<a name="a54" doxytag="ZE::ZEngine::BPP"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 22:05:04 +00:00
<a name="a55" doxytag="ZE::ZEngine::IsFullscreen"></a><p>
2003-01-18 22:54:50 +00:00
<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>
2003-04-27 22:05:04 +00:00
<hr><address style="align: right;"><small>Generated on Sun Apr 27 17:56:46 2003 for ZEngine by
2003-01-18 22:54:50 +00:00
<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>