X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..487f2d58e9d1c28cc54e9800affd91623adadac7:/include/wx/msw/glcanvas.h diff --git a/include/wx/msw/glcanvas.h b/include/wx/msw/glcanvas.h index b8dab7af65..db3a6149df 100644 --- a/include/wx/msw/glcanvas.h +++ b/include/wx/msw/glcanvas.h @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "glcanvas.h" #endif @@ -52,9 +52,9 @@ enum WX_GL_MIN_ACCUM_ALPHA /* use blue buffer with most bits (> MIN_ACCUM_ALPHA bits) */ }; -class WXDLLEXPORT wxGLCanvas; /* forward reference */ +class WXDLLIMPEXP_GL wxGLCanvas; /* forward reference */ -class WXDLLEXPORT wxGLContext: public wxObject +class WXDLLIMPEXP_GL wxGLContext: public wxObject { public: wxGLContext(bool isRGB, wxGLCanvas *win, const wxPalette& palette = wxNullPalette); @@ -80,7 +80,7 @@ public: wxWindow* m_window; }; -class WXDLLEXPORT wxGLCanvas: public wxWindow +class WXDLLIMPEXP_GL wxGLCanvas: public wxWindow { DECLARE_CLASS(wxGLCanvas) public: @@ -104,6 +104,10 @@ class WXDLLEXPORT wxGLCanvas: public wxWindow const wxPoint& pos, const wxSize& size, long style, const wxString& name); void SetCurrent(); + #ifdef __WXUNIVERSAL__ + virtual bool SetCurrent(bool doit = true){ return wxWindow::SetCurrent(doit); }; + #endif + void SetColour(const wxChar *colour); void SwapBuffers();