summaryrefslogtreecommitdiff
path: root/src/interface/Engine.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-31 18:49:14 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-31 18:49:14 (GMT)
commit857b0cc1fc58f066acd59404d16ee5e566e20f00 (patch)
tree7607fc43f3bdd63687dff39209f44defa48e6a35 /src/interface/Engine.h
parent1d297cb57a338f2a9e34d0f16642afc6a83c1041 (diff)
downloadpowder-857b0cc1fc58f066acd59404d16ee5e566e20f00.zip
powder-857b0cc1fc58f066acd59404d16ee5e566e20f00.tar.gz
Load user information from preferences, fps display for testing
Diffstat (limited to 'src/interface/Engine.h')
-rw-r--r--src/interface/Engine.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/interface/Engine.h b/src/interface/Engine.h
index 09fc222..b8f6b73 100644
--- a/src/interface/Engine.h
+++ b/src/interface/Engine.h
@@ -38,9 +38,11 @@ namespace ui
inline bool Running() { return running_; }
void Exit();
- void Tick(float dt);
+ void Tick();
void Draw();
+ void SetFps(float fps);
+
inline int GetMouseX() { return mousex_; }
inline int GetMouseY() { return mousey_; }
inline int GetWidth() { return width_; }
@@ -54,6 +56,8 @@ namespace ui
float FpsLimit;
Graphics * g;
private:
+ float dt;
+ float fps;
pixel * lastBuffer;
std::stack<pixel*> prevBuffers;
std::stack<Window*> windows;