diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-18 21:08:20 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-18 21:08:20 (GMT) |
| commit | 740f0d30c3d5badc10da09af875b47d67128048b (patch) | |
| tree | 2c9ce272c8a9afb75c55ef5a3d73973143cd89a8 /src/interface/Engine.h | |
| parent | 63da7a4afec50035c6aa37a29a8d60d38cab969f (diff) | |
| download | powder-740f0d30c3d5badc10da09af875b47d67128048b.zip powder-740f0d30c3d5badc10da09af875b47d67128048b.tar.gz | |
Blocking Confirm/Error/Input prompts (EngineProcess creates a new event loop which can be broken out of with Engine::Break())
Diffstat (limited to 'src/interface/Engine.h')
| -rw-r--r-- | src/interface/Engine.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interface/Engine.h b/src/interface/Engine.h index cd1c341..b28ba84 100644 --- a/src/interface/Engine.h +++ b/src/interface/Engine.h @@ -35,7 +35,9 @@ namespace ui void Begin(int width, int height); inline bool Running() { return running_; } + inline bool Broken() { return break_; } void Exit(); + void Break(); void SetFullscreen(bool fullscreen) { Fullscreen = fullscreen; } inline bool GetFullscreen() { return Fullscreen; } @@ -76,6 +78,7 @@ namespace ui float windowOpenState; bool running_; + bool break_; int mousex_; int mousey_; |
