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
8 // Copyright: (c) Julian Smart, Wolfram Gloger
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_GLCANVAS_H_
13 #define _WX_GLCANVAS_H_
15 #include "wx/unix/glx11.h"
17 class WXDLLIMPEXP_GL wxGLCanvas
: public wxGLCanvasX11
20 wxGLCanvas(wxWindow
*parent
,
21 wxWindowID id
= wxID_ANY
,
22 const int *attribList
= NULL
,
23 const wxPoint
& pos
= wxDefaultPosition
,
24 const wxSize
& size
= wxDefaultSize
,
26 const wxString
& name
= wxGLCanvasName
,
27 const wxPalette
& palette
= wxNullPalette
);
29 bool Create(wxWindow
*parent
,
30 wxWindowID id
= wxID_ANY
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& size
= wxDefaultSize
,
34 const wxString
& name
= wxGLCanvasName
,
35 const int *attribList
= NULL
,
36 const wxPalette
& palette
= wxNullPalette
);
38 // implement wxGLCanvasX11 methods
39 // --------------------------------
41 virtual Window
GetXWindow() const;
44 virtual int GetColourIndex(const wxColour
& col
);
46 DECLARE_CLASS(wxGLCanvas
)
49 #endif // _WX_GLCANVAS_H_