%module glcanvas
%{
-#include "export.h"
+#include "wxPython.h"
+
+#ifdef __WXMAC__ // avoid a bug in Carbon headers
+#define scalb scalbn
+#endif
+
#ifdef __WXMSW__
#include "myglcanvas.h"
#else
~wxGLContext();
void SetCurrent();
- void SetColour(const char *colour);
+ void SetColour(const wxString& colour);
void SwapBuffers();
#ifdef __WXGTK__
%pragma(python) addtomethod = "wxGLCanvasWithContext:val._setOORInfo(self)"
void SetCurrent();
- void SetColour(const char *colour);
+ void SetColour(const wxString& colour);
void SwapBuffers();
wxGLContext* GetContext();
%init %{
- wxClassInfo::CleanUpClasses();
- wxClassInfo::InitializeClasses();
-
%}
//---------------------------------------------------------------------------