- // This ctor is identical to the next, except for the fact that it
- // doesn't create an implicit wxGLContext.
- // The attribList parameter has been moved to avoid overload clashes.
- wxGLCanvas( wxWindow *parent, wxWindowID id = -1,
- int *attribList = (int*) NULL,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0, const wxString& name = wxGLCanvasName,
- const wxPalette& palette = wxNullPalette );
-
- 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,
+ wxGLCanvas(wxWindow *parent,
+ wxWindowID id = wxID_ANY,
+ const int *attribList = NULL,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ const wxString& name = wxGLCanvasName,
+ const wxPalette& palette = wxNullPalette);
+
+ bool Create(wxWindow *parent,
+ wxWindowID id = wxID_ANY,