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