2002-11-21 05:40:49 +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 >
2002-12-05 00:05:06 +00:00
<!-- Generated by Doxygen 1.3 - rc1 -->
2002-11-21 05:40:49 +00:00
< center >
< a class = "qindex" href = "index.html" > Main Page< / a > < a class = "qindex" href = "namespaces.html" > Namespace List< / a > < a class = "qindex" href = "hierarchy.html" > Class Hierarchy< / a > < a class = "qindex" href = "annotated.html" > Compound List< / a > < a class = "qindex" href = "files.html" > File List< / a > < a class = "qindex" href = "namespacemembers.html" > Namespace Members< / a > < a class = "qindex" href = "functions.html" > Compound Members< / a > < a class = "qindex" href = "globals.html" > File Members< / a > < / center >
< hr > < h1 > ZE::ZEngine Class Reference< / h1 > < code > #include < < a class = "el" href = "ZE__ZEngine_8h-source.html" > ZE_ZEngine.h< / a > > < / code >
< p >
< a href = "classZE_1_1ZEngine-members.html" > List of all members.< / a > < hr > < a name = "_details" > < / a > < h2 > Detailed Description< / h2 >
2002-12-05 00:05:06 +00:00
< 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.
2002-11-21 05:40:49 +00:00
< 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 < / 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 > < / 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a1" > SetupSound< / a > (int rate, bool stereo)< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Initialize Sound for SDL.< / em > < a href = "#a1" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
2002-12-01 07:56:17 +00:00
< tr > < td nowrap align = right valign = top > void < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a2" > CreateDisplay< / a > (string title, string icon="")< / td > < / tr >
< tr > < td > < / 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a3" > CloseDisplay< / a > ()< / td > < / tr >
2002-11-21 05:40:49 +00:00
< tr > < td > < / td > < td > < font size = -1 > < em > Quit SDL and any Subsystems.< / em > < a href = "#a3" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
2002-12-01 07:56:17 +00:00
< tr > < td nowrap align = right valign = top > SDL_Surface * < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a4" > Display< / a > ()< / td > < / tr >
2002-11-21 05:40:49 +00:00
< tr > < td > < / 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a5" > UpdateScreen< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Update screen contents.< / em > < a href = "#a5" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
2002-12-01 07:56:17 +00:00
< tr > < td nowrap align = right valign = top > void < / 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 > < / 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a7" > SetGL2D< / a > ()< / td > < / tr >
< tr > < td > < / 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a8" > Delay< / a > (Uint32 milliseconds)< / td > < / tr >
2002-11-21 05:40:49 +00:00
< tr > < td > < / 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a9" > GetTime< / a > ()< / td > < / tr >
< tr > < td > < / 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a10" > PauseTimer< / a > ()< / td > < / tr >
< tr > < td > < / 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a11" > UnpauseTimer< / a > ()< / td > < / tr >
< tr > < td > < / 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a12" > GetFrameTime< / a > ()< / td > < / tr >
< tr > < td > < / 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 > bool < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a13" > IsPaused< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Check Engine Paused State.< / em > < a href = "#a13" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > bool < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a14" > IsActive< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Find out if application is active.< / em > < a href = "#a14" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > void < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a15" > RequestQuit< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Request A Quit.< / em > < a href = "#a15" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > bool < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a16" > QuitRequested< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Find out if user has requested to quit.< / em > < a href = "#a16" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
2002-12-05 00:05:06 +00:00
< tr > < td nowrap align = right valign = top > void < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a17" > SetKeyRepeatRate< / a > (int rate)< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Set Key repeat rate.< / em > < a href = "#a17" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > bool < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a18" > KeyIsPressed< / a > (SDLKey key)< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Find the state of a key.< / em > < a href = "#a18" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > bool < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a19" > KeyPress< / a > (SDLKey key)< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Find if key has been pressed since last check.< / em > < a href = "#a19" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > void < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a20" > HideCursor< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Hide mouse cursor.< / em > < a href = "#a20" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > void < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a21" > ShowCursor< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Show mouse cursor.< / em > < a href = "#a21" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > int < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a22" > MouseX< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Get X Position of Mouse.< / em > < a href = "#a22" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > int < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a23" > MouseY< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Get Y Position of Mouse.< / em > < a href = "#a23" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > bool < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a24" > LButtonPressed< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Get Status of Left Button.< / em > < a href = "#a24" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > bool < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a25" > RButtonPressed< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Get Status of Right Button.< / em > < a href = "#a25" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > bool < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a26" > MouseInRect< / a > (SDL_Rect *rect)< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Check if mouse is in given rectangle.< / em > < a href = "#a26" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > void < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a27" > CheckEvents< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Check for Activation, Window Manager, and Quit Events.< / em > < a href = "#a27" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > SDL_Surface * < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a28" > LoadImage< / a > (string filename)< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Load an Image.< / em > < a href = "#a28" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > Mix_Chunk * < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a29" > LoadSound< / a > (string filename)< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Load a Sound.< / em > < a href = "#a29" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > Mix_Music * < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a30" > LoadMusic< / a > (string filename)< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Load a Music File.< / em > < a href = "#a30" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > TTF_Font * < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a31" > LoadFont< / a > (string filename, int size)< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Load a Font.< / em > < a href = "#a31" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > int < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a32" > Width< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Get Current Display Width.< / em > < a href = "#a32" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > int < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a33" > Height< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Get Current Display Height.< / em > < a href = "#a33" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > int < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a34" > BPP< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Get Current Display BPP.< / em > < a href = "#a34" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > bool < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#a35" > IsFullscreen< / a > ()< / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Get Fullscreen setting.< / em > < a href = "#a35" > < / a > < em > < / em > < / font > < br > < br > < / td > < / tr >
2002-11-21 05:40:49 +00:00
< tr > < td colspan = 2 > < br > < h2 > Static Public Methods< / h2 > < / td > < / tr >
< tr > < td nowrap align = right valign = top > ZEngine * < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#d0" > GetInstance< / a > ()< / td > < / tr >
< tr > < td > < / 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#d1" > ReleaseInstance< / a > ()< / td > < / tr >
< tr > < td > < / 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#d2" > GetVersion< / a > ()< / td > < / tr >
< tr > < td > < / 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 > < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#c0" > ZEngine< / a > ()< / td > < / tr >
< tr > < td > < / 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 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o0" > mWidth< / a > < / td > < / tr >
< tr > < td > < / 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o1" > mHeight< / a > < / td > < / tr >
< tr > < td > < / 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o2" > mBPP< / a > < / td > < / tr >
< tr > < td > < / 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o3" > mFullscreen< / a > < / td > < / tr >
< tr > < td > < / 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o4" > mRate< / a > < / td > < / tr >
< tr > < td > < / 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o5" > mStereo< / a > < / td > < / tr >
< tr > < td > < / 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 * < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o6" > mScreen< / a > < / td > < / tr >
< tr > < td > < / 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o7" > mPaused< / a > < / td > < / tr >
< tr > < td > < / 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 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o8" > mUnpauseOnActive< / a > < / td > < / tr >
< tr > < td > < / 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::mLastPause" > < / a >
Uint32 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o9" > mLastPause< / a > < / td > < / tr >
< tr > < td > < / 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 = "o10" doxytag = "ZE::ZEngine::mPausedTime" > < / a >
Uint32 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o10" > mPausedTime< / a > < / td > < / tr >
< tr > < td > < / 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 = "o11" doxytag = "ZE::ZEngine::mLastTime" > < / a >
Uint32 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o11" > mLastTime< / a > < / td > < / tr >
< tr > < td > < / 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 = "o12" doxytag = "ZE::ZEngine::mSecPerFrame" > < / a >
double < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o12" > mSecPerFrame< / a > < / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > Seconds per frame.< / em > < / font > < br > < br > < / td > < / tr >
< tr > < td nowrap align = right valign = top > < a name = "o13" doxytag = "ZE::ZEngine::mActive" > < / a >
bool < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o13" > mActive< / a > < / td > < / tr >
< tr > < td > < / 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 = "o14" doxytag = "ZE::ZEngine::mQuit" > < / a >
bool < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o14" > mQuit< / a > < / td > < / tr >
< tr > < td > < / td > < td > < font size = -1 > < em > bool for checking if a Quit event has been detected< / em > < / font > < br > < br > < / td > < / tr >
2002-12-05 00:05:06 +00:00
< tr > < td nowrap align = right valign = top > < a name = "o15" doxytag = "ZE::ZEngine::mKeyIsPressed" > < / a >
Uint8 * < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o15" > mKeyIsPressed< / a > < / td > < / tr >
2002-11-21 05:40:49 +00:00
< tr > < td > < / td > < td > < font size = -1 > < em > Pointer to array of Keys.< / em > < / font > < br > < br > < / td > < / tr >
2002-12-05 00:05:06 +00:00
< tr > < td nowrap align = right valign = top > < a name = "o16" doxytag = "ZE::ZEngine::mKeyPress" > < / a >
bool < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o16" > mKeyPress< / a > [SDLK_LAST]< / td > < / tr >
< tr > < td > < / 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 = "o17" doxytag = "ZE::ZEngine::mMouseX" > < / a >
int < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o17" > mMouseX< / a > < / td > < / tr >
2002-11-21 05:40:49 +00:00
< tr > < td > < / td > < td > < font size = -1 > < em > X Position of Mouse.< / em > < / font > < br > < br > < / td > < / tr >
2002-12-05 00:05:06 +00:00
< tr > < td nowrap align = right valign = top > < a name = "o18" doxytag = "ZE::ZEngine::mMouseY" > < / a >
int < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o18" > mMouseY< / a > < / td > < / tr >
2002-11-21 05:40:49 +00:00
< tr > < td > < / td > < td > < font size = -1 > < em > Y Position of Mouse.< / em > < / font > < br > < br > < / td > < / tr >
2002-12-05 00:05:06 +00:00
< tr > < td nowrap align = right valign = top > < a name = "o19" doxytag = "ZE::ZEngine::mMouseB" > < / a >
Uint8 < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#o19" > mMouseB< / a > < / td > < / tr >
2002-11-21 05:40:49 +00:00
< tr > < td > < / td > < td > < font size = -1 > < em > Mouse Button Information.< / 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 * < / td > < td valign = bottom > < a class = "el" href = "classZE_1_1ZEngine.html#r0" > sInstance< / a > = NULL< / td > < / tr >
< tr > < td > < / 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 & 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" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < code > [private]< / code > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / 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" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < code > [static]< / code > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
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 >
2002-11-21 05:40:49 +00:00
< / 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" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < code > [static]< / code > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / 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" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < code > [static]< / code > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
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 >
2002-11-21 05:40:49 +00:00
< / 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" > ( < / td >
< td class = "md" nowrap valign = "top" > int < / td >
< td class = "mdname" nowrap > < em > width< / em > , < / td >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td class = "md" nowrap > int < / td >
< td class = "mdname" nowrap > < em > height< / em > , < / td >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td class = "md" nowrap > int < / td >
< td class = "mdname" nowrap > < em > bpp< / em > , < / td >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td class = "md" nowrap > bool < / td >
< td class = "mdname" nowrap > < em > fullscreen< / em > < / td >
< / tr >
< tr >
< td > < / td >
< td class = "md" > ) < / td >
< td class = "md" colspan = "2" > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
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 > < / td > < td > Desired width of screen or window. < / td > < / tr >
< tr > < td valign = top > < em > height< / em > < / td > < td > Desired height of screen or window. < / td > < / tr >
< tr > < td valign = top > < em > bpp< / em > < / td > < td > Desired BPP for screen (only works in fullscreen). < / td > < / tr >
< tr > < td valign = top > < em > fullscreen< / em > < / td > < td > A bool for fullscreen setting. < / td > < / tr >
< / table >
< / dl >
< / td >
2002-11-21 05:40:49 +00:00
< / 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" > ( < / td >
< td class = "md" nowrap valign = "top" > int < / td >
< td class = "mdname" nowrap > < em > rate< / em > , < / td >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td class = "md" nowrap > bool < / td >
< td class = "mdname" nowrap > < em > stereo< / em > < / td >
< / tr >
< tr >
< td > < / td >
< td class = "md" > ) < / td >
< td class = "md" colspan = "2" > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
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 > < / td > < td > Desired sound bitrate. < / td > < / tr >
< tr > < td valign = top > < em > stereo< / em > < / td > < td > A bool for stereo setting. < / td > < / tr >
< / table >
< / dl >
< / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
2002-12-01 07:56:17 +00:00
< a name = "a2" doxytag = "ZE::ZEngine::CreateDisplay" > < / a > < p >
2002-11-21 05:40:49 +00:00
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap valign = "top" > void ZE::ZEngine::CreateDisplay < / td >
2002-11-21 05:40:49 +00:00
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > string < / td >
< td class = "mdname" nowrap > < em > title< / em > , < / td >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td class = "md" nowrap > string < / td >
< td class = "mdname" nowrap > < em > icon< / em > = ""< / td >
< / tr >
< tr >
< td > < / td >
< td class = "md" > ) < / td >
< td class = "md" colspan = "2" > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +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 OS icon.
< p >
< dl compact > < dt > < b > Parameters:< / b > < / dt > < dd >
< table border = "0" cellspacing = "2" cellpadding = "0" >
< tr > < td valign = top > < em > title< / em > < / td > < td > Window Title. < / td > < / tr >
< tr > < td valign = top > < em > icon< / em > < / td > < td > Path to Icon File. < / td > < / tr >
< / table >
< / dl >
< / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
2002-12-01 07:56:17 +00:00
< a name = "a3" doxytag = "ZE::ZEngine::CloseDisplay" > < / a > < p >
2002-11-21 05:40:49 +00:00
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap valign = "top" > void ZE::ZEngine::CloseDisplay < / td >
2002-11-21 05:40:49 +00:00
< td class = "md" valign = "top" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
Shut down SDL (and SDL_ttf,SDL_mixer if necessary). < / td >
< / tr >
< / table >
2002-12-01 07:56:17 +00:00
< a name = "a4" doxytag = "ZE::ZEngine::Display" > < / a > < p >
2002-11-21 05:40:49 +00:00
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap valign = "top" > SDL_Surface * ZE::ZEngine::Display < / td >
2002-11-21 05:40:49 +00:00
< td class = "md" valign = "top" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
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 >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
< a name = "a5" doxytag = "ZE::ZEngine::UpdateScreen" > < / 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::UpdateScreen < / td >
< td class = "md" valign = "top" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
Flip double buffer in SDL if double buffered, otherwise tell video to refresh entire screen. < / td >
< / tr >
< / table >
2002-12-01 07:56:17 +00:00
< a name = "a6" doxytag = "ZE::ZEngine::Clear" > < / a > < p >
2002-11-21 05:40:49 +00:00
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap valign = "top" > void ZE::ZEngine::Clear < / td >
2002-11-21 05:40:49 +00:00
< td class = "md" valign = "top" > ( < / td >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap valign = "top" > float < / td >
< td class = "mdname" nowrap > < em > red< / em > = 0.0f, < / td >
2002-11-21 05:40:49 +00:00
< / tr >
< tr >
< td > < / td >
< td > < / td >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap > float < / td >
< td class = "mdname" nowrap > < em > green< / em > = 0.0f, < / td >
2002-11-21 05:40:49 +00:00
< / tr >
< tr >
< td > < / td >
< td > < / td >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap > float < / td >
< td class = "mdname" nowrap > < em > blue< / em > = 0.0f, < / td >
2002-11-21 05:40:49 +00:00
< / tr >
< tr >
< td > < / td >
< td > < / td >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap > float < / td >
< td class = "mdname" nowrap > < em > alpha< / em > = 1.0f< / td >
2002-11-21 05:40:49 +00:00
< / tr >
< tr >
< td > < / td >
< td class = "md" > ) < / td >
< td class = "md" colspan = "2" > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
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 > < / td > < td > Red component (0.0-1.0) of new color. < / td > < / tr >
< tr > < td valign = top > < em > green< / em > < / td > < td > Green component (0.0-1.0) of new color. < / td > < / tr >
< tr > < td valign = top > < em > blue< / em > < / td > < td > Blue component (0.0-1.0) of new color. < / td > < / tr >
< tr > < td valign = top > < em > alpha< / em > < / td > < td > Alpha component (0.0-1.0) of new color. < / td > < / tr >
< / table >
< / dl >
< / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
2002-12-01 07:56:17 +00:00
< a name = "a7" doxytag = "ZE::ZEngine::SetGL2D" > < / a > < p >
2002-11-21 05:40:49 +00:00
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap valign = "top" > void ZE::ZEngine::SetGL2D < / td >
2002-11-21 05:40:49 +00:00
< td class = "md" valign = "top" > ( < / td >
2002-12-01 07:56:17 +00:00
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-01 07:56:17 +00:00
Sets the OpenGL scaled orthographic mode, called once at beginning, no need to call unless you change the OpenGL mode manually. < / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
2002-12-01 07:56:17 +00:00
< a name = "a8" doxytag = "ZE::ZEngine::Delay" > < / a > < p >
2002-11-21 05:40:49 +00:00
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap valign = "top" > void ZE::ZEngine::Delay < / td >
2002-11-21 05:40:49 +00:00
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > Uint32 < / td >
< td class = "mdname1" valign = "top" nowrap > < em > milliseconds< / em > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
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 > < / td > < td > Number of milliseconds to freeze. < / td > < / tr >
< / table >
< / dl >
< / td >
2002-11-21 05:40:49 +00:00
< / 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" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
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 >
2002-11-21 05:40:49 +00:00
< / 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" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / 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" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / 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" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
Get double that describes the time passed between screen updates. (used for Framerate Independant Movement) < dl compact > < dt > < b > Returns:< / b > < / dt > < dd > Time between screen updates. < / dd > < / dl >
< / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
< a name = "a13" 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" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
Find out if engine timer is paused. < dl compact > < dt > < b > Returns:< / b > < / dt > < dd > Paused State of engine. < / dd > < / dl >
< / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
< a name = "a14" 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" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
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 >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
< a name = "a15" 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" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
Tell the engine that it should behave as if a Quit was requested, does not call any shutdown functions. < / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
< a name = "a16" 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" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +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#a15" > ZEngine::RequestQuit()< / a > . < dl compact > < dt > < b > Returns:< / b > < / dt > < dd > bool telling if quit has been requested. < / dd > < / dl >
< / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
2002-12-05 00:05:06 +00:00
< a name = "a17" 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" > ( < / td >
< td class = "md" nowrap valign = "top" > int < / td >
< td class = "mdname1" valign = "top" nowrap > < em > rate< / em > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / 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 > < / td > < td > Desired key repeat rate. < / td > < / tr >
< / table >
< / dl >
< / td >
< / tr >
< / table >
< a name = "a18" doxytag = "ZE::ZEngine::KeyIsPressed" > < / a > < p >
2002-11-21 05:40:49 +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" > ( < / td >
< td class = "md" nowrap valign = "top" > SDLKey < / td >
< td class = "mdname1" valign = "top" nowrap > < em > key< / em > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
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 > < / 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 >
2002-12-01 07:56:17 +00:00
< / table >
2002-12-05 00:05:06 +00:00
< a name = "a19" 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" > ( < / td >
< td class = "md" nowrap valign = "top" > SDLKey < / td >
< td class = "mdname1" valign = "top" nowrap > < em > key< / em > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / 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 > < / 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 >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
2002-12-05 00:05:06 +00:00
< a name = "a20" doxytag = "ZE::ZEngine::HideCursor" > < / a > < p >
2002-11-21 05:40:49 +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" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
Hide the system mouse cursor. < / td >
< / tr >
< / table >
2002-12-05 00:05:06 +00:00
< a name = "a21" doxytag = "ZE::ZEngine::ShowCursor" > < / a > < p >
2002-11-21 05:40:49 +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" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
Show the system mouse cursor. < / td >
< / tr >
< / table >
2002-12-05 00:05:06 +00:00
< a name = "a22" doxytag = "ZE::ZEngine::MouseX" > < / a > < p >
2002-11-21 05:40:49 +00:00
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap valign = "top" > int ZE::ZEngine::MouseX < / td >
2002-11-21 05:40:49 +00:00
< td class = "md" valign = "top" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
Find X Position of Mouse on screen. < dl compact > < dt > < b > Returns:< / b > < / dt > < dd > X Position of Mouse. < / dd > < / dl >
< / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
2002-12-05 00:05:06 +00:00
< a name = "a23" doxytag = "ZE::ZEngine::MouseY" > < / a > < p >
2002-11-21 05:40:49 +00:00
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap valign = "top" > int ZE::ZEngine::MouseY < / td >
2002-11-21 05:40:49 +00:00
< td class = "md" valign = "top" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
Find Y Position of Mouse on screen. < dl compact > < dt > < b > Returns:< / b > < / dt > < dd > Y Position of Mouse. < / dd > < / dl >
< / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
2002-12-05 00:05:06 +00:00
< a name = "a24" doxytag = "ZE::ZEngine::LButtonPressed" > < / a > < p >
2002-11-21 05:40:49 +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" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
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 >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
2002-12-05 00:05:06 +00:00
< a name = "a25" doxytag = "ZE::ZEngine::RButtonPressed" > < / a > < p >
2002-11-21 05:40:49 +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" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
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 >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
2002-12-05 00:05:06 +00:00
< a name = "a26" doxytag = "ZE::ZEngine::MouseInRect" > < / a > < p >
2002-11-21 05:40:49 +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" > ( < / td >
< td class = "md" nowrap valign = "top" > SDL_Rect * < / td >
< td class = "mdname1" valign = "top" nowrap > < em > rect< / em > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
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 > < / 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 >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
2002-12-05 00:05:06 +00:00
< a name = "a27" doxytag = "ZE::ZEngine::CheckEvents" > < / a > < p >
2002-11-21 05:40:49 +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" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
Cycle through event queue, processing events, updating all Event Related variables, should be called once per frame. < / td >
< / tr >
< / table >
2002-12-05 00:05:06 +00:00
< a name = "a28" doxytag = "ZE::ZEngine::LoadImage" > < / a > < p >
2002-11-21 05:40:49 +00:00
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap valign = "top" > SDL_Surface * ZE::ZEngine::LoadImage < / td >
2002-11-21 05:40:49 +00:00
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > string < / td >
< td class = "mdname1" valign = "top" nowrap > < em > filename< / em > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
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 > < / 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 >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
2002-12-05 00:05:06 +00:00
< a name = "a29" doxytag = "ZE::ZEngine::LoadSound" > < / a > < p >
2002-11-21 05:40:49 +00:00
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap valign = "top" > Mix_Chunk* ZE::ZEngine::LoadSound < / td >
2002-11-21 05:40:49 +00:00
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > string < / td >
< td class = "mdname1" valign = "top" nowrap > < em > filename< / em > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
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 > < / 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 >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
2002-12-05 00:05:06 +00:00
< a name = "a30" doxytag = "ZE::ZEngine::LoadMusic" > < / a > < p >
2002-11-21 05:40:49 +00:00
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap valign = "top" > Mix_Music* ZE::ZEngine::LoadMusic < / td >
2002-11-21 05:40:49 +00:00
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > string < / td >
< td class = "mdname1" valign = "top" nowrap > < em > filename< / em > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
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 > < / 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 >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
2002-12-05 00:05:06 +00:00
< a name = "a31" doxytag = "ZE::ZEngine::LoadFont" > < / a > < p >
2002-11-21 05:40:49 +00:00
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap valign = "top" > TTF_Font* ZE::ZEngine::LoadFont < / td >
2002-11-21 05:40:49 +00:00
< td class = "md" valign = "top" > ( < / td >
< td class = "md" nowrap valign = "top" > string < / td >
< td class = "mdname" nowrap > < em > filename< / em > , < / td >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td class = "md" nowrap > int < / td >
< td class = "mdname" nowrap > < em > size< / em > < / td >
< / tr >
< tr >
< td > < / td >
< td class = "md" > ) < / td >
< td class = "md" colspan = "2" > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
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 > < / td > < td > path to file to load. < / td > < / tr >
< tr > < td valign = top > < em > size< / em > < / 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 >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
2002-12-05 00:05:06 +00:00
< a name = "a32" doxytag = "ZE::ZEngine::Width" > < / a > < p >
2002-11-21 05:40:49 +00:00
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap valign = "top" > int ZE::ZEngine::Width < / td >
2002-11-21 05:40:49 +00:00
< td class = "md" valign = "top" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
Get Width of Window or Fullscreen mode. < dl compact > < dt > < b > Returns:< / b > < / dt > < dd > Width of Display. < / dd > < / dl >
< / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
2002-12-05 00:05:06 +00:00
< a name = "a33" doxytag = "ZE::ZEngine::Height" > < / a > < p >
2002-11-21 05:40:49 +00:00
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap valign = "top" > int ZE::ZEngine::Height < / td >
2002-11-21 05:40:49 +00:00
< td class = "md" valign = "top" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
Get Height of Window or Fullscreen mode. < dl compact > < dt > < b > Returns:< / b > < / dt > < dd > Height of Display. < / dd > < / dl >
< / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
2002-12-05 00:05:06 +00:00
< a name = "a34" doxytag = "ZE::ZEngine::BPP" > < / a > < p >
2002-11-21 05:40:49 +00:00
< table width = "100%" cellpadding = "2" cellspacing = "0" border = "0" >
< tr >
< td class = "md" >
< table cellpadding = "0" cellspacing = "0" border = "0" >
< tr >
2002-12-01 07:56:17 +00:00
< td class = "md" nowrap valign = "top" > int ZE::ZEngine::BPP < / td >
2002-11-21 05:40:49 +00:00
< td class = "md" valign = "top" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
Get BPP of Window or Fullscreen mode. < dl compact > < dt > < b > Returns:< / b > < / dt > < dd > BPP of Display. < / dd > < / dl >
< / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
2002-12-05 00:05:06 +00:00
< a name = "a35" doxytag = "ZE::ZEngine::IsFullscreen" > < / a > < p >
2002-11-21 05:40:49 +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" > ( < / td >
< td class = "mdname1" valign = "top" nowrap > < / td >
< td class = "md" valign = "top" > ) < / td >
< td class = "md" nowrap > < / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< table cellspacing = 5 cellpadding = 0 border = 0 >
< tr >
< td >
< / td >
< td >
< p >
2002-12-05 00:05:06 +00:00
Get Fullscreen setting of Display. < dl compact > < dt > < b > Returns:< / b > < / dt > < dd > True if Fullscreen, False if Windowed < / dd > < / dl >
< / td >
2002-11-21 05:40:49 +00:00
< / tr >
< / table >
< hr > The documentation for this class was generated from the following files:< ul >
2002-12-05 00:05:06 +00:00
< li > /home/James/ZEngine-dev/include/< a class = "el" href = "ZE__ZEngine_8h-source.html" > ZE_ZEngine.h< / a > < li > /home/James/ZEngine-dev/src/< a class = "el" href = "ZE__ZEngine_8cpp.html" > ZE_ZEngine.cpp< / a > < / ul >
< hr > < address style = "align: right;" > < small > Generated on Wed Dec 4 19:01:31 2002 for ZEngine by
2002-11-21 05:40:49 +00:00
< a href = "http://www.doxygen.org/index.html" >
< img src = "doxygen.png" alt = "doxygen" align = "middle" border = 0
2002-12-05 00:05:06 +00:00
width=110 height=53>< / a > 1.3-rc1 < / small > < / address >
2002-11-21 05:40:49 +00:00
< / body >
< / html >