render modes interface can be exited with ESC
This commit is contained in:
parent
b0ce2ee615
commit
cd9d13503a
@ -295,6 +295,11 @@ void RenderView::OnMouseDown(int x, int y, unsigned button)
|
|||||||
c->Exit();
|
c->Exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RenderView::OnTryExit(ExitMethod method)
|
||||||
|
{
|
||||||
|
c->Exit();
|
||||||
|
}
|
||||||
|
|
||||||
void RenderView::NotifyRendererChanged(RenderModel * sender)
|
void RenderView::NotifyRendererChanged(RenderModel * sender)
|
||||||
{
|
{
|
||||||
ren = sender->GetRenderer();
|
ren = sender->GetRenderer();
|
||||||
|
@ -34,6 +34,7 @@ public:
|
|||||||
void NotifyColourChanged(RenderModel * sender);
|
void NotifyColourChanged(RenderModel * sender);
|
||||||
void AttachController(RenderController * c_) { c = c_; }
|
void AttachController(RenderController * c_) { c = c_; }
|
||||||
void OnMouseDown(int x, int y, unsigned button);
|
void OnMouseDown(int x, int y, unsigned button);
|
||||||
|
void OnTryExit(ExitMethod method);
|
||||||
virtual void OnDraw();
|
virtual void OnDraw();
|
||||||
virtual void OnTick(float dt);
|
virtual void OnTick(float dt);
|
||||||
virtual void OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt);
|
virtual void OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt);
|
||||||
|
Reference in New Issue
Block a user