]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/glcanvas/glcanvas.i
Second phase of OOR completed. (Original python object return for
[wxWidgets.git] / wxPython / contrib / glcanvas / glcanvas.i
index ad76d3cf13b92d44d40b455b839f2ef1d41b085b..ebb39d526a251032395f0a95967c563190982796 100644 (file)
 
 %{
 #include "export.h"
 
 %{
 #include "export.h"
+#ifdef __WXMSW__
 #include "myglcanvas.h"
 #include "myglcanvas.h"
+#else
+#include <wx/glcanvas.h>
+#endif
+
 %}
 
 //---------------------------------------------------------------------------
 %}
 
 //---------------------------------------------------------------------------
@@ -109,8 +114,8 @@ public:
                     int *attribList = NULL,
                     const wxPalette& palette = wxNullPalette );
 
                     int *attribList = NULL,
                     const wxPalette& palette = wxNullPalette );
 
-    bool Create(wxWindow *parent, wxWindowID id,
-                const wxPoint& pos, const wxSize& size, long style, const wxString& name);
+//      bool Create(wxWindow *parent, wxWindowID id,
+//                  const wxPoint& pos, const wxSize& size, long style, const wxString& name);
 
     %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
     %pragma(python) addtomethod = "wxGLCanvasWithContext:val._setOORInfo(self)"
 
     %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
     %pragma(python) addtomethod = "wxGLCanvasWithContext:val._setOORInfo(self)"
@@ -121,11 +126,12 @@ public:
 
     wxGLContext* GetContext();
 
 
     wxGLContext* GetContext();
 
-   void SetupPixelFormat(int *attribList = NULL);
-   void SetupPalette(const wxPalette& palette);
-   wxPalette CreateDefaultPalette();
-
-   wxPalette* GetPalette();
+#ifdef __WXMSW__
+    void SetupPixelFormat(int *attribList = NULL);
+    void SetupPalette(const wxPalette& palette);
+    wxPalette CreateDefaultPalette();
+    wxPalette* GetPalette();
+#endif
 };
 
 
 };