-class WXDLLEXPORT wxGLCanvas: public wxWindow
-{
-public:
- inline wxGLCanvas() {
- m_glContext = (wxGLContext*) NULL;
- m_sharedContext = (wxGLContext*) NULL;
- m_glWidget = (GtkWidget*) NULL;
- m_vi = (void*) NULL;
- m_exposed = FALSE;
- }
- wxGLCanvas( wxWindow *parent, wxWindowID id = -1,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0, const wxString& name = wxGLCanvasName,
- int *attribList = (int*) NULL,
- const wxPalette& palette = wxNullPalette );
- wxGLCanvas( wxWindow *parent, const wxGLContext *shared,
- wxWindowID id = -1,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0, const wxString& name = wxGLCanvasName,
- int *attribList = (int*) NULL,
- const wxPalette& palette = wxNullPalette );
- wxGLCanvas( wxWindow *parent, const wxGLCanvas *shared,
- wxWindowID id = -1,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0, const wxString& name = wxGLCanvasName,
- int *attribList = (int*) NULL,
- const wxPalette& palette = wxNullPalette );
-
- bool Create( wxWindow *parent,
- const wxGLContext *shared = (wxGLContext*)NULL,
- const wxGLCanvas *shared_context_of = (wxGLCanvas*)NULL,
- wxWindowID id = -1,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxGLCanvasName,
- int *attribList = (int*) NULL,
- const wxPalette& palette = wxNullPalette );
+#if WXWIN_COMPATIBILITY_2_8
+ wxDEPRECATED(
+ wxGLCanvas(wxWindow *parent,
+ wxWindowID id = wxID_ANY,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ const wxString& name = wxGLCanvasName,
+ const int *attribList = NULL,
+ const wxPalette& palette = wxNullPalette)
+ );