X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c2265822fec3d0fa383dc6e043cad1a12a0e8418..fed485e0946d9cff74fce6afdb169796d90a99f2:/utils/glcanvas/samples/cube/cube.h diff --git a/utils/glcanvas/samples/cube/cube.h b/utils/glcanvas/samples/cube/cube.h index f3dc44ac49..74d3219ece 100644 --- a/utils/glcanvas/samples/cube/cube.h +++ b/utils/glcanvas/samples/cube/cube.h @@ -19,7 +19,6 @@ class MyApp: public wxApp { public: bool OnInit(void); - void InitGL(void); }; // Define a new frame type @@ -31,7 +30,6 @@ public: long style = wxDEFAULT_FRAME_STYLE); void OnExit(wxCommandEvent& event); - bool OnClose(void); public: TestGLCanvas* m_canvas; @@ -48,6 +46,11 @@ class TestGLCanvas: public wxGLCanvas void OnPaint(wxPaintEvent& event); void OnSize(wxSizeEvent& event); void OnEraseBackground(wxEraseEvent& event); + void InitGL(void); + + private: + + bool m_init; DECLARE_EVENT_TABLE() };