Remove all lines containing cvs/svn "$Id$" keyword.
[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 // Copyright: (c) Julian Smart, Wolfram Gloger
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_GLCANVAS_H_
13 #define _WX_GLCANVAS_H_
14
15 #include "wx/unix/glx11.h"
16
17 class WXDLLIMPEXP_GL wxGLCanvas : public wxGLCanvasX11
18 {
19 public:
20 wxGLCanvas(wxWindow *parent,
21 wxWindowID id = wxID_ANY,
22 const int *attribList = NULL,
23 const wxPoint& pos = wxDefaultPosition,
24 const wxSize& size = wxDefaultSize,
25 long style = 0,
26 const wxString& name = wxGLCanvasName,
27 const wxPalette& palette = wxNullPalette);
28
29 bool Create(wxWindow *parent,
30 wxWindowID id = wxID_ANY,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize,
33 long style = 0,
34 const wxString& name = wxGLCanvasName,
35 const int *attribList = NULL,
36 const wxPalette& palette = wxNullPalette);
37
38 // implement wxGLCanvasX11 methods
39 // --------------------------------
40
41 virtual Window GetXWindow() const;
42
43 protected:
44 virtual int GetColourIndex(const wxColour& col);
45
46 DECLARE_CLASS(wxGLCanvas)
47 };
48
49 #endif // _WX_GLCANVAS_H_