- const wxString& name = "GLCanvas", int *attribList = 0, const wxPalette& palette = wxNullPalette);
- wxGLCanvas( wxWindow *parent, const wxGLContext *shared = (wxGLContext *)NULL,
- wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "GLCanvas",
- int *attribList = (int*) NULL, const wxPalette& palette = wxNullPalette );
+ const wxString& name = wxGLCanvasName, int *attribList = 0,
+ const wxPalette& palette = wxNullPalette);
+
+ wxGLCanvas(wxWindow *parent,
+ const wxGLContext *shared,
+ wxWindowID id = wxID_ANY,
+ 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 = wxID_ANY,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ const wxString& name = wxGLCanvasName,
+ int *attribList = 0,
+ const wxPalette& palette = wxNullPalette);
+
+ ~wxGLCanvas();
+
+ // Replaces wxWindow::Create functionality, since
+ // we need to use a different window class
+ bool Create(wxWindow *parent, wxWindowID id,
+ const wxPoint& pos, const wxSize& size,
+ long style, const wxString& name);
+
+ void SetCurrent();
+
+#ifdef __WXUNIVERSAL__
+ virtual bool SetCurrent(bool doit) { return wxWindow::SetCurrent(doit); };
+#endif
+
+ void SetColour(const wxChar *colour);
+
+ void SwapBuffers();