1 #include <Base/Common/W32Compat.hh>
3 #include <Gui/OpenGLCanvas.hh>
11 class ExampleOpenGLCanvasApp
14 virtual bool OnInit();
17 enum _ExampleOpenGLCanvasMyFrameIDs_ {
33 MyGLCanvas(wxFrame* parent);
38 ,wxGLContext* sharedContext
40 ,
const wxPoint& pos = wxDefaultPosition
41 ,
const wxSize& size = wxDefaultSize
43 ,
const wxString& name=wxT(
"MyGLCanvas sharedContext")
45 ,
const wxPalette& palette = wxNullPalette
54 class MyFrame:
public wxFrame {
56 MyFrame(
const wxString& title,
const wxPoint& pos,
const wxSize& size);
57 void OnQuit(wxCommandEvent& event);
58 void OnAbout(wxCommandEvent& event);
60 void OnTestShot(wxCommandEvent& event);
64 MyGLCanvas * p_canvas;
OpenGL canvases with additinal event handling (JW)