X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6a1120ad4cc05520f989449ffc953a217782af72..56b9c74101566aa241d1846a148d3a01980b7431:/utils/glcanvas/samples/cube/cube.h diff --git a/utils/glcanvas/samples/cube/cube.h b/utils/glcanvas/samples/cube/cube.h index 81dc1afe7a..5ae1fd9f7f 100644 --- a/utils/glcanvas/samples/cube/cube.h +++ b/utils/glcanvas/samples/cube/cube.h @@ -19,20 +19,19 @@ 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 +47,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() };