X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/19cf4f80860b85e06c410ddbfc49ad58e5c6f5b5..357262e4a1ba5b056fde35a4d3e552a0e14db938:/wxPython/contrib/glcanvas/msw/myglcanvas.h diff --git a/wxPython/contrib/glcanvas/msw/myglcanvas.h b/wxPython/contrib/glcanvas/msw/myglcanvas.h index 2ec721c66b..5dd269da72 100644 --- a/wxPython/contrib/glcanvas/msw/myglcanvas.h +++ b/wxPython/contrib/glcanvas/msw/myglcanvas.h @@ -17,17 +17,15 @@ #define _WX_GLCANVAS_H_ #include - - +#undef wxUSE_GLCANVAS #define wxUSE_GLCANVAS 1 -#if wxUSE_GLCANVAS #include #include #include -#include "gl/gl.h" +#include //--------------------------------------------------------------------------- // Constants for attriblist @@ -85,7 +83,7 @@ public: wxWindow* m_window; }; -class wxGLCanvas: public wxScrolledWindow +class wxGLCanvas: public wxWindow { DECLARE_CLASS(wxGLCanvas) public: @@ -130,11 +128,29 @@ protected: wxPalette m_palette; WXHDC m_hDC; -DECLARE_EVENT_TABLE() + DECLARE_EVENT_TABLE() }; -#endif - // wxUSE_GLCANVAS + + +class wxGLApp : public wxApp +{ +public: + wxGLApp() : wxApp() { } + virtual ~wxGLApp(); + + // use this in the constructor of the user-derived wxGLApp class to + // determine if an OpenGL rendering context with these attributes + // is available - returns TRUE if so, FALSE if not. + bool InitGLVisual(int *attribList); + +private: + DECLARE_DYNAMIC_CLASS(wxGLApp) +}; + + + + #endif // _WX_GLCANVAS_H_