#ifndef _WX_GLCANVAS_H_
#define _WX_GLCANVAS_H_
-#include "wx/gdicmn.h"
+#include "wx/unix/glx11.h"
-#include <GL/glx.h>
-
-//---------------------------------------------------------------------------
-// classes
-//---------------------------------------------------------------------------
-
-class WXDLLEXPORT wxGLContext : public wxGLContextBase
-{
-public:
- wxGLContext(wxGLCanvas *win, const wxGLContext *other = NULL);
- virtual ~wxGLContext();
-
- virtual void SetCurrent(const wxGLCanvas& win) const;
-
-private:
- GLXContext m_glContext;
-
- DECLARE_CLASS(wxGLContext)
-};
-
-
-class WXDLLEXPORT wxGLCanvas : public wxGLCanvasBase
+class WXDLLIMPEXP_GL wxGLCanvas : public wxGLCanvasX11
{
public:
wxGLCanvas(wxWindow *parent,
const int *attribList = NULL,
const wxPalette& palette = wxNullPalette);
- virtual ~wxGLCanvas();
-
- virtual void SwapBuffers();
-
+ // implement wxGLCanvasX11 methods
+ // --------------------------------
- // implementation
- void *m_vi;
+ virtual Window GetXWindow() const;
protected:
virtual int GetColourIndex(const wxColour& col);