]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/glcanvas.h
Hopefully fixed library names generated by wx-config for OS/2's PM port.
[wxWidgets.git] / include / wx / glcanvas.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/glcanvas.h
3// Purpose: wxGLCanvas base header
4// Author: Julian Smart
5// Modified by:
6// Created:
7// Copyright: (c) Julian Smart
8// RCS-ID: $Id$
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_GLCANVAS_H_BASE_
13#define _WX_GLCANVAS_H_BASE_
14
15#include "wx/defs.h"
16
17#if wxUSE_GLCANVAS
18
19#define wxGLCanvasName _T("GLCanvas")
20
21#if defined(__WXMSW__)
22#include "wx/msw/glcanvas.h"
23#elif defined(__WXMOTIF__)
24#include "wx/x11/glcanvas.h"
25#elif defined(__WXGTK__)
26#include "wx/gtk/glcanvas.h"
27#elif defined(__WXX11__)
28#include "wx/x11/glcanvas.h"
29#elif defined(__WXMAC__)
30#include "wx/mac/glcanvas.h"
31#elif defined(__WXCOCOA__)
32#include "wx/cocoa/glcanvas.h"
33#elif defined(__WXPM__)
34#include "wx/os2/glcanvas.h"
35#endif
36
37#include "wx/app.h"
38class WXDLLIMPEXP_GL wxGLApp : public wxApp
39{
40public:
41 wxGLApp() : wxApp() { }
42 virtual ~wxGLApp();
43
44 // use this in the constructor of the user-derived wxGLApp class to
45 // determine if an OpenGL rendering context with these attributes
46 // is available - returns true if so, false if not.
47 bool InitGLVisual(int *attribList);
48
49private:
50 DECLARE_DYNAMIC_CLASS(wxGLApp)
51};
52
53#endif
54 // wxUSE_GLCANVAS
55#endif
56 // _WX_GLCANVAS_H_BASE_