class wxGLContext : public wxObject {
public:
#ifndef __WXMAC__
- wxGLContext(bool isRGB, wxGLCanvas *win,
- const wxPalette& palette = wxNullPalette,
- const wxGLContext* other = NULL);
+ wxGLContext(wxGLCanvas *win, const wxGLContext* other = NULL);
#else
%extend {
wxGLContext(bool isRGB, wxGLCanvas *win,
#endif
~wxGLContext();
- void SetCurrent();
- void SetColour(const wxString& colour);
- void SwapBuffers();
-
-#ifdef __WXGTK__
- void SetupPixelFormat();
- void SetupPalette(const wxPalette& palette);
- wxPalette CreateDefaultPalette();
- wxPalette* GetPalette();
+#ifndef __WXMAC__
+ void SetCurrent(const wxGLCanvas& win);
#endif
-
- wxWindow* GetWindow();
};
//---------------------------------------------------------------------------
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`");
};