git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41056
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
class wxGLContext : public wxObject {
public:
#ifndef __WXMAC__
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,
#else
%extend {
wxGLContext(bool isRGB, wxGLCanvas *win,
- 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);
};
//---------------------------------------------------------------------------
};
//---------------------------------------------------------------------------
const wxPalette& palette = wxNullPalette ));
const wxPalette& palette = wxNullPalette ));
+ void SetCurrent(const wxGLContext& RC);
void SetColour(const wxString& colour);
void SwapBuffers();
void SetColour(const wxString& colour);
void SwapBuffers();