X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a6f5aa49cf93fc19c776bcce0a7872bdc9707afb..69429a166f8b168228bbb89eb8c52903670f4fd2:/include/wx/gtk1/glcanvas.h diff --git a/include/wx/gtk1/glcanvas.h b/include/wx/gtk1/glcanvas.h index 3eec4ab6ad..472ba104ff 100644 --- a/include/wx/gtk1/glcanvas.h +++ b/include/wx/gtk1/glcanvas.h @@ -9,17 +9,13 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "glcanvas.h" #endif #ifndef _WX_GLCANVAS_H_ #define _WX_GLCANVAS_H_ -#include "wx/defs.h" - -#if wxUSE_GLCANVAS - #include "wx/scrolwin.h" #include "wx/app.h" @@ -104,7 +100,7 @@ private: // wxGLCanvas //--------------------------------------------------------------------------- -class WXDLLEXPORT wxGLCanvas: public wxScrolledWindow +class WXDLLEXPORT wxGLCanvas: public wxWindow { public: inline wxGLCanvas() { @@ -178,30 +174,6 @@ private: DECLARE_CLASS(wxGLCanvas) }; - -//--------------------------------------------------------------------------- -// wxGLApp -//--------------------------------------------------------------------------- - -class WXDLLEXPORT wxGLApp: public wxApp -{ -public: - wxGLApp() : wxApp() { } - ~wxGLApp(); - - // use this in the constructor of the user-derived wxGLApp class to select - // an appropriate X visual for GL. Returns TRUE if an appropriate visual - // is found - and sets m_glVisualInfo; FALSE otherwise. - bool InitGLVisual(int *attribList); - -private: - DECLARE_DYNAMIC_CLASS(wxGLApp) -}; - - -#endif - // wxUSE_GLCANVAS - #endif // _WX_GLCANVAS_H_