X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6a1120ad4cc05520f989449ffc953a217782af72..fed485e0946d9cff74fce6afdb169796d90a99f2:/utils/glcanvas/samples/cube/cube.h?ds=sidebyside diff --git a/utils/glcanvas/samples/cube/cube.h b/utils/glcanvas/samples/cube/cube.h index 81dc1afe7a..74d3219ece 100644 --- a/utils/glcanvas/samples/cube/cube.h +++ b/utils/glcanvas/samples/cube/cube.h @@ -19,20 +19,18 @@ class MyApp: public wxApp { public: bool OnInit(void); - void InitGL(void); }; // Define a new frame type class TestGLCanvas; class MyFrame: public wxFrame -{ public: +{ +public: MyFrame(wxFrame *frame, const wxString& title, const wxPoint& pos, const wxSize& size, long style = wxDEFAULT_FRAME_STYLE); void OnExit(wxCommandEvent& event); - - bool OnClose(void); - +public: TestGLCanvas* m_canvas; DECLARE_EVENT_TABLE() @@ -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() };