Wartbed:Framework/Wartbed
From Dark Omen Wiki
(Difference between revisions)
(Created page with '''User guide for my benefit. May not represent the current state of WARTBED development'' <tt> =='''Layout'''== <div style="margin:2em"> '''Wartbed.h''' :class '''Wartbed''' </d...') |
|||
Line 10: | Line 10: | ||
=='''Wartbed members'''== | =='''Wartbed members'''== | ||
{| class="prettytable" style="font-family:monospace" | {| class="prettytable" style="font-family:monospace" | ||
- | ! return type !! method !! Notes | + | ! !! return type !! method !! Notes |
|- | |- | ||
- | | void || '''Wartbed'''() || Really a wrapper around the OGRE initialisation functions under the wb::ogre namespace | + | | - || void || '''Wartbed'''() || Really a wrapper around the OGRE initialisation functions under the wb::ogre namespace |
|- | |- | ||
- | | void || '''mainLoop'''() || Really a convenience forward to wb::ogre::MainLoop() | + | | + || void || static '''getInstance'''() || Static access method for the Wartbed singleton object. Creates Wartbed at first call. |
+ | |- | ||
+ | | + || void || '''mainLoop'''() || Really a convenience forward to wb::ogre::MainLoop() | ||
+ | |- | ||
+ | | + || float || '''timeElapsed'''() || Returns the time since last update in seconds | ||
+ | |- | ||
+ | | + || void || '''setEventManager'''( wb::input::pf_EVENTMANAGER ) || Replaces the current event manager | ||
+ | |- | ||
+ | | + || void || '''readInputBindings'''( std::string const & ) || Reads the input bindings from ''application.config''. | ||
|- | |- | ||
|} | |} | ||
</tt> | </tt> |
Revision as of 16:57, 7 March 2009
User guide for my benefit. May not represent the current state of WARTBED development
Layout
Wartbed.h
- class Wartbed
Wartbed members
return type | method | Notes | |
---|---|---|---|
- | void | Wartbed() | Really a wrapper around the OGRE initialisation functions under the wb::ogre namespace |
+ | void | static getInstance() | Static access method for the Wartbed singleton object. Creates Wartbed at first call. |
+ | void | mainLoop() | Really a convenience forward to wb::ogre::MainLoop() |
+ | float | timeElapsed() | Returns the time since last update in seconds |
+ | void | setEventManager( wb::input::pf_EVENTMANAGER ) | Replaces the current event manager |
+ | void | readInputBindings( std::string const & ) | Reads the input bindings from application.config. |