]>
Commit | Line | Data |
---|---|---|
8b089c5e JS |
1 | #ifndef _WX_GLCANVAS_H_BASE_ |
2 | #define _WX_GLCANVAS_H_BASE_ | |
3 | ||
a3081354 VZ |
4 | #include "wx/defs.h" |
5 | ||
6 | #if wxUSE_GLCANVAS | |
7 | ||
2b5f62a0 VZ |
8 | #define wxGLCanvasName _T("GLCanvas") |
9 | ||
8b089c5e JS |
10 | #if defined(__WXMSW__) |
11 | #include "wx/msw/glcanvas.h" | |
12 | #elif defined(__WXMOTIF__) | |
05e770c4 | 13 | #include "wx/x11/glcanvas.h" |
8b089c5e JS |
14 | #elif defined(__WXGTK__) |
15 | #include "wx/gtk/glcanvas.h" | |
83df96d6 JS |
16 | #elif defined(__WXX11__) |
17 | #include "wx/x11/glcanvas.h" | |
8b089c5e JS |
18 | #elif defined(__WXMAC__) |
19 | #include "wx/mac/glcanvas.h" | |
20 | #elif defined(__WXPM__) | |
21 | #include "wx/os2/glcanvas.h" | |
8b089c5e JS |
22 | #endif |
23 | ||
d7b766f5 | 24 | #include "wx/app.h" |
d8290dd0 | 25 | class WXDLLIMPEXP_GL wxGLApp : public wxApp |
a3081354 VZ |
26 | { |
27 | public: | |
28 | wxGLApp() : wxApp() { } | |
29 | virtual ~wxGLApp(); | |
30 | ||
31 | // use this in the constructor of the user-derived wxGLApp class to | |
32 | // determine if an OpenGL rendering context with these attributes | |
5d3e7b52 | 33 | // is available - returns true if so, false if not. |
a3081354 VZ |
34 | bool InitGLVisual(int *attribList); |
35 | ||
36 | private: | |
37 | DECLARE_DYNAMIC_CLASS(wxGLApp) | |
38 | }; | |
39 | ||
40 | #endif | |
41 | // wxUSE_GLCANVAS | |
8b089c5e JS |
42 | #endif |
43 | // _WX_GLCANVAS_H_BASE_ |