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:
@@ -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()
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user