]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/glcanvas.h
added internal callback when toplevel windows move for opengl canvas
[wxWidgets.git] / include / wx / mac / glcanvas.h
index 73e067d3019c4b34401ba47b8970e86fca49ea2f..c0b1f9e30a2b1e820b20a7a7664d55bb5facb0e2 100644 (file)
@@ -10,7 +10,7 @@
 /////////////////////////////////////////////////////////////////////////////
 
 #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
@@ -76,7 +82,7 @@ public:
    wxWindow*        m_window;
 };
 
-class WXDLLEXPORT wxGLCanvas: public wxScrolledWindow
+class WXDLLEXPORT wxGLCanvas: public wxWindow
 {
    DECLARE_CLASS(wxGLCanvas)
  public: