1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG definitions for the OpenGL wxWindows classes
7 // Created: 15-Mar-1999
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
18 #include <wx/glcanvas.h>
21 //---------------------------------------------------------------------------
24 %include my_typemaps.i
39 #if defined(__WXMSW__)
40 static wxString wxPyEmptyStr("");
41 static wxPoint wxPyDefaultPosition(-1, -1);
42 static wxSize wxPyDefaultSize(-1, -1);
46 %pragma(python) code = "import wx"
48 //---------------------------------------------------------------------------
56 //---------------------------------------------------------------------------
60 wxGLContext(bool isRGB, wxGLCanvas *win, const wxPalette& palette = wxNullPalette);
64 void SetColour(const char *colour);
68 void SetupPixelFormat();
69 void SetupPalette(const wxPalette& palette);
70 wxPalette CreateDefaultPalette();
71 wxPalette* GetPalette();
74 wxWindow* GetWindow();
77 //---------------------------------------------------------------------------
79 class wxGLCanvas : public wxScrolledWindow {
81 wxGLCanvas(wxWindow *parent, wxWindowID id = -1,
82 const wxPoint& pos = wxPyDefaultPosition,
83 const wxSize& size = wxPyDefaultSize, long style = 0,
84 const char* name = "GLCanvas",
86 const wxPalette& palette = wxNullPalette);
88 %pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
91 void SetColour(const char *colour);
94 wxGLContext* GetContext();
98 //---------------------------------------------------------------------------
102 wxClassInfo::CleanUpClasses();
103 wxClassInfo::InitializeClasses();
107 //---------------------------------------------------------------------------
108 //---------------------------------------------------------------------------