]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/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_
24 #include <wx/gdicmn.h>
25 #include <wx/palette.h>
26 #include <wx/scrolwin.h>
30 class WXDLLEXPORT wxGLCanvas
: public wxScrolledWindow
32 DECLARE_CLASS(wxGLCanvas
)
36 inline wxGLCanvas() { glx_cx
= 0; }
38 wxGLCanvas(wxWindow
*parent
, wxWindowID id
= -1, const wxPoint
& pos
= wxDefaultPosition
,
39 const wxSize
& size
= wxDefaultSize
, long style
= 0,
40 const wxString
& name
= "GLCanvas", int *attribList
= 0, const wxPalette
& palette
= wxNullPalette
);
45 void SetColour(const char *col
);