]> git.saurik.com Git - wxWidgets.git/blob - include/wx/x11/glcanvas.h
Complete rewrite of DoDrawBitmap() and DoBlit().
[wxWidgets.git] / include / wx / x11 / glcanvas.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/x11/glcanvas.h
3 // Purpose: wxGLCanvas, for using OpenGL with wxWidgets 2.0 for Motif.
4 // Uses the GLX extension.
5 // Author: Julian Smart and Wolfram Gloger
6 // Modified by:
7 // Created: 1995, 1999
8 // RCS-ID: $Id$
9 // Copyright: (c) Julian Smart, Wolfram Gloger
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
12
13 #ifndef _WX_GLCANVAS_H_
14 #define _WX_GLCANVAS_H_
15
16 #include "wx/unix/glx11.h"
17
18 class WXDLLIMPEXP_GL wxGLCanvas : public wxGLCanvasX11
19 {
20 public:
21 wxGLCanvas(wxWindow *parent,
22 wxWindowID id = wxID_ANY,
23 const int *attribList = NULL,
24 const wxPoint& pos = wxDefaultPosition,
25 const wxSize& size = wxDefaultSize,
26 long style = 0,
27 const wxString& name = wxGLCanvasName,
28 const wxPalette& palette = wxNullPalette);
29
30 bool Create(wxWindow *parent,
31 wxWindowID id = wxID_ANY,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
34 long style = 0,
35 const wxString& name = wxGLCanvasName,
36 const int *attribList = NULL,
37 const wxPalette& palette = wxNullPalette);
38
39 // implement wxGLCanvasX11 methods
40 // --------------------------------
41
42 virtual Window GetXWindow() const;
43
44 protected:
45 virtual int GetColourIndex(const wxColour& col);
46
47 DECLARE_CLASS(wxGLCanvas)
48 };
49
50 #endif // _WX_GLCANVAS_H_