]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/glcanvas.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxGLCanvas base header
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_GLCANVAS_H_BASE_
13 #define _WX_GLCANVAS_H_BASE_
19 #define wxGLCanvasName _T("GLCanvas")
21 #if defined(__WXMSW__)
22 #include "wx/msw/glcanvas.h"
23 #elif defined(__WXMOTIF__)
24 #include "wx/x11/glcanvas.h"
25 #elif defined(__WXGTK20__)
26 #include "wx/gtk/glcanvas.h"
27 #elif defined(__WXGTK__)
28 #include "wx/gtk1/glcanvas.h"
29 #elif defined(__WXX11__)
30 #include "wx/x11/glcanvas.h"
31 #elif defined(__WXMAC__)
32 #include "wx/mac/glcanvas.h"
33 #elif defined(__WXCOCOA__)
34 #include "wx/cocoa/glcanvas.h"
35 #elif defined(__WXPM__)
36 #include "wx/os2/glcanvas.h"
40 class WXDLLIMPEXP_GL wxGLApp
: public wxApp
43 wxGLApp() : wxApp() { }
46 // use this in the constructor of the user-derived wxGLApp class to
47 // determine if an OpenGL rendering context with these attributes
48 // is available - returns true if so, false if not.
49 bool InitGLVisual(int *attribList
);
52 DECLARE_DYNAMIC_CLASS(wxGLApp
)
58 // _WX_GLCANVAS_H_BASE_