]>
git.saurik.com Git - wxWidgets.git/blob - utils/glcanvas/motif/glcanvas.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxGLCanvas, for using OpenGL with wxWindows 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 /////////////////////////////////////////////////////////////////////////////
14 #pragma interface "glcanvas.h"
17 #ifndef _WX_GLCANVAS_H_
18 #define _WX_GLCANVAS_H_
21 #include "wx/gdicmn.h"
22 #include "wx/palette.h"
23 #include "wx/scrolwin.h"
27 class wxGLCanvas
: public wxScrolledWindow
29 DECLARE_CLASS(wxGLCanvas
)
33 inline wxGLCanvas() { glx_cx
= 0; }
35 wxGLCanvas(wxWindow
*parent
, wxWindowID id
= -1, const wxPoint
& pos
= wxDefaultPosition
,
36 const wxSize
& size
= wxDefaultSize
, long style
= 0,
37 const wxString
& name
= "GLCanvas", int *attribList
= 0, const wxPalette
& palette
= wxNullPalette
);
42 void SetColour(const char *col
);