+class WXDLLIMPEXP_GL wxGLCanvas: public wxWindow
+{
+ DECLARE_CLASS(wxGLCanvas)
+public:
+ wxGLCanvas(wxWindow *parent, 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(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); };