X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8d7e482e06d6179b827a955587bec1b694823b37..bbc3761ee897d2cdae209c60d415ba00fe825554:/wxPython/contrib/glcanvas/glcanvas.i diff --git a/wxPython/contrib/glcanvas/glcanvas.i b/wxPython/contrib/glcanvas/glcanvas.i index f538920e02..1cdf228276 100644 --- a/wxPython/contrib/glcanvas/glcanvas.i +++ b/wxPython/contrib/glcanvas/glcanvas.i @@ -46,9 +46,7 @@ MustHaveApp(wxGLContext); 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, @@ -62,18 +60,9 @@ public: #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(); }; //--------------------------------------------------------------------------- @@ -142,8 +131,11 @@ public: 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(); @@ -155,6 +147,8 @@ public: wxPalette CreateDefaultPalette(); wxPalette* GetPalette(); #endif + + %property(Context, GetContext, doc="See `GetContext`"); };