/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
-#pragma interface "glcanvas.h"
+# pragma interface "glcanvas.h"
#endif
#ifndef _WX_GLCANVAS_H_
#include "wx/palette.h"
#include "wx/scrolwin.h"
-
-#include <gl.h>
-#include <agl.h>
+#include "wx/app.h"
+
+#ifdef __DARWIN__
+# include <OpenGL/gl.h>
+# include <AGL/agl.h>
+#else
+# include <gl.h>
+# include <agl.h>
+#endif
//---------------------------------------------------------------------------
// Constants for attriblist
wxWindow* m_window;
};
-class WXDLLEXPORT wxGLCanvas: public wxScrolledWindow
+class WXDLLEXPORT wxGLCanvas: public wxWindow
{
DECLARE_CLASS(wxGLCanvas)
public:
// It sets the viewport correctly and update the context.
// You shouldn't call glViewport yourself either (use SetViewport if you must reset it.)
void OnSize(wxSizeEvent& event);
+
+ virtual void MacSuperChangedPosition() ;
+ virtual void MacTopLevelWindowChangedPosition() ;
+ void MacUpdateView() ;
inline wxGLContext* GetContext() const { return m_glContext; }