]> git.saurik.com Git - wxWidgets.git/blame - include/wx/glcanvas.h
On WinCE, generic font dialog didn't work because the point size wxChoice
[wxWidgets.git] / include / wx / glcanvas.h
CommitLineData
99d80019
JS
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
8b089c5e
JS
12#ifndef _WX_GLCANVAS_H_BASE_
13#define _WX_GLCANVAS_H_BASE_
14
a3081354
VZ
15#include "wx/defs.h"
16
17#if wxUSE_GLCANVAS
18
2b5f62a0
VZ
19#define wxGLCanvasName _T("GLCanvas")
20
8b089c5e
JS
21#if defined(__WXMSW__)
22#include "wx/msw/glcanvas.h"
23#elif defined(__WXMOTIF__)
05e770c4 24#include "wx/x11/glcanvas.h"
1be7a35c 25#elif defined(__WXGTK20__)
8b089c5e 26#include "wx/gtk/glcanvas.h"
1be7a35c
MR
27#elif defined(__WXGTK__)
28#include "wx/gtk1/glcanvas.h"
83df96d6
JS
29#elif defined(__WXX11__)
30#include "wx/x11/glcanvas.h"
8b089c5e
JS
31#elif defined(__WXMAC__)
32#include "wx/mac/glcanvas.h"
bd2af428
DE
33#elif defined(__WXCOCOA__)
34#include "wx/cocoa/glcanvas.h"
8b089c5e
JS
35#elif defined(__WXPM__)
36#include "wx/os2/glcanvas.h"
8b089c5e
JS
37#endif
38
d7b766f5 39#include "wx/app.h"
d8290dd0 40class WXDLLIMPEXP_GL wxGLApp : public wxApp
a3081354
VZ
41{
42public:
43 wxGLApp() : wxApp() { }
44 virtual ~wxGLApp();
45
46 // use this in the constructor of the user-derived wxGLApp class to
47 // determine if an OpenGL rendering context with these attributes
5d3e7b52 48 // is available - returns true if so, false if not.
a3081354
VZ
49 bool InitGLVisual(int *attribList);
50
51private:
52 DECLARE_DYNAMIC_CLASS(wxGLApp)
53};
54
55#endif
56 // wxUSE_GLCANVAS
8b089c5e
JS
57#endif
58 // _WX_GLCANVAS_H_BASE_