]> git.saurik.com Git - wxWidgets.git/commitdiff
adapt to wxGLCanvas changes
authorRobin Dunn <robin@alldunn.com>
Fri, 8 Sep 2006 01:05:13 +0000 (01:05 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 8 Sep 2006 01:05:13 +0000 (01:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/contrib/glcanvas/glcanvas.i

index f538920e02fa42bdf1bd18f73ff4ed8aadc1df36..e399a9e7f3a2ba57f5431182f84a484a729a9f73 100644 (file)
@@ -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(wxWindow *win, const wxGLContext* other = NULL);
 #else
     %extend {
         wxGLContext(bool isRGB, wxGLCanvas *win,
@@ -62,18 +60,7 @@ 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();
-#endif
-
-    wxWindow* GetWindow();
+    void SetCurrent(const wxGLCanvas& win);
 };
 
 //---------------------------------------------------------------------------
@@ -143,7 +130,7 @@ public:
                     const wxPalette& palette = wxNullPalette ));
 
 
-    void SetCurrent();
+    void SetCurrent(const wxGLContext& RC);
     void SetColour(const wxString& colour);
     void SwapBuffers();