36 #include <Gui/OpenGLCanvas.hh>
37 #ifdef BIAS_HAVE_FONTGL
38 # include <Utils/DrawTextGL.hh>
47 class ExampleGLSharedApp
50 virtual bool OnInit();
54 enum _ExampleGLSharedMyFrameIDs_ {
69 MyGLCanvas(wxFrame* parent);
74 ,wxGLContext* sharedContext
76 ,
const wxPoint& pos = wxDefaultPosition
77 ,
const wxSize& size = wxDefaultSize
79 ,
const wxString& name=wxT(
"MyGLCanvas sharedContext")
81 ,
const wxPalette& palette = wxNullPalette
96 #ifdef BIAS_HAVE_FONTGL
104 MyGLCanvas2(wxFrame* parent);
109 ,wxGLContext* sharedContext
111 ,
const wxPoint& pos = wxDefaultPosition
112 ,
const wxSize& size = wxDefaultSize
114 ,
const wxString& name=wxT(
"MyGLCanvas sharedContext")
116 ,
const wxPalette& palette = wxNullPalette
128 class MyFrame:
public wxFrame {
130 MyFrame(
const wxString& title,
const wxPoint& pos,
const wxSize& size);
131 void OnQuit(wxCommandEvent& event);
132 void OnAbout(wxCommandEvent& event);
136 MyGLCanvas * p_canvas;
137 MyGLCanvas2 * p_2nd_canvas;
139 DECLARE_EVENT_TABLE()
OpenGL canvases with additinal event handling (JW)
Draw text to OpenGL as 2D bitmap font.