Allow to use space to toggle spinning of the cube in OpenGL sample.

Small enhancement to the cube OpenGL sample.

Closes #11545.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-10-24 22:40:58 +00:00
parent 22993989b4
commit e4545e0183
3 changed files with 49 additions and 24 deletions

View File

@@ -67,12 +67,16 @@ public:
private:
void OnPaint(wxPaintEvent& event);
void Spin(float xSpin, float ySpin);
void OnKeyDown(wxKeyEvent& event);
void OnSpinTimer(wxTimerEvent& WXUNUSED(event));
// angles of rotation around x- and y- axis
float m_xangle,
m_yangle;
wxTimer m_spinTimer;
DECLARE_EVENT_TABLE()
};