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
9 // Copyright: (c) Julian Smart, Wolfram Gloger
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
13 #ifndef _WX_GLCANVAS_H_
14 #define _WX_GLCANVAS_H_
16 #include "wx/unix/glx11.h"
18 class WXDLLIMPEXP_GL wxGLCanvas
: public wxGLCanvasX11
21 wxGLCanvas(wxWindow
*parent
,
22 wxWindowID id
= wxID_ANY
,
23 const int *attribList
= NULL
,
24 const wxPoint
& pos
= wxDefaultPosition
,
25 const wxSize
& size
= wxDefaultSize
,
27 const wxString
& name
= wxGLCanvasName
,
28 const wxPalette
& palette
= wxNullPalette
);
30 bool Create(wxWindow
*parent
,
31 wxWindowID id
= wxID_ANY
,
32 const wxPoint
& pos
= wxDefaultPosition
,
33 const wxSize
& size
= wxDefaultSize
,
35 const wxString
& name
= wxGLCanvasName
,
36 const int *attribList
= NULL
,
37 const wxPalette
& palette
= wxNullPalette
);
39 // implement wxGLCanvasX11 methods
40 // --------------------------------
42 virtual Window
GetXWindow() const;
45 virtual int GetColourIndex(const wxColour
& col
);
47 DECLARE_CLASS(wxGLCanvas
)
50 #endif // _WX_GLCANVAS_H_