class wxGLContext : public wxObject {
public:
#ifndef __WXMAC__
- wxGLContext(wxWindow *win, const wxGLContext* other = NULL);
+ wxGLContext(wxGLCanvas *win, const wxGLContext* other = NULL);
#else
%extend {
wxGLContext(bool isRGB, wxGLCanvas *win,
#endif
~wxGLContext();
+#ifndef __WXMAC__
void SetCurrent(const wxGLCanvas& win);
+#endif
};
//---------------------------------------------------------------------------
int *attribList = NULL,
const wxPalette& palette = wxNullPalette ));
-
+#ifdef __WXMAC__
+ void SetCurrent();
+#else
void SetCurrent(const wxGLContext& RC);
+#endif
void SetColour(const wxString& colour);
void SwapBuffers();
wxPalette CreateDefaultPalette();
wxPalette* GetPalette();
#endif
+
+ %property(Context, GetContext, doc="See `GetContext`");
};