// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "glcanvas.h"
#endif
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);
wxWindow* m_window;
};
-class WXDLLEXPORT wxGLCanvas: public wxWindow
+class WXDLLIMPEXP_GL wxGLCanvas: public wxWindow
{
DECLARE_CLASS(wxGLCanvas)
public:
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();