int *attribList = (int*) NULL,
const wxPalette& palette = wxNullPalette );
+ inline wxGLCanvas() {
+ m_glContext = (wxGLContext*) NULL;
+ m_sharedContext = (wxGLContext*) NULL;
+ m_glWidget = (GtkWidget*) NULL;
+ m_vi = (void*) NULL;
+ m_exposed = FALSE;
+ }
+
bool Create( wxWindow *parent, const wxGLContext *shared = (wxGLContext *)NULL,
wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition,
public:
GLXContext glx_cx;
+ inline wxGLCanvas() { glx_cx = 0; }
+
wxGLCanvas(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
const wxString& name = "GLCanvas", int *attribList = 0, const wxPalette& palette = wxNullPalette);
{
DECLARE_CLASS(wxGLCanvas)
public:
+ wxGLCanvas()
+ {
+ m_glContext = (wxGLContext*) NULL;
+ m_hDC = 0;
+ }
+
wxGLCanvas(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
const wxString& name = "GLCanvas", int *attribList = 0, const wxPalette& palette = wxNullPalette);