Wartbed:Framework/Wartbed

From Dark Omen Wiki

< Wartbed:Framework(Difference between revisions)
Jump to: navigation, search
 
(2 intermediate revisions not shown)
Line 20: Line 20:
| + || float || '''timeElapsed'''() || Returns the time since last update in seconds
| + || float || '''timeElapsed'''() || Returns the time since last update in seconds
|-
|-
-
| + || void || '''setEventManager'''( wb::input::pf_EVENTMANAGER ) || Replaces the current event manager
+
| + || void || '''setFrameListener'''(Ogre::FrameListener&nbsp;*) || Replaces the current FrameListener object (ownership of the pointer is taken)
|-
|-
-
| + || void || '''readInputBindings'''( std::string const & ) || Reads the input bindings from ''application.config''.
+
| + || void || '''setEventManager'''(wb::input::pf_EVENTMANAGER) || Replaces the current event manager
 +
|-
 +
| + || void || '''readInputBindings'''(std::string const&nbsp;&) || Reads the input bindings from ''application.config''.
|-
|-
|}
|}
</tt>
</tt>
 +
 +
[[category:WARTBED]]

Current revision as of 21:21, 8 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 setFrameListener(Ogre::FrameListener *) Replaces the current FrameListener object (ownership of the pointer is taken)
+ void setEventManager(wb::input::pf_EVENTMANAGER) Replaces the current event manager
+ void readInputBindings(std::string const &) Reads the input bindings from application.config.

Personal tools
communication