]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/x11/glcanvas.h
support retina display
[wxWidgets.git] / include / wx / x11 / glcanvas.h
index e06246e2f5a110a4bfd454a50ddb99c57e86ff78..ab61c7376a2222e5d1f05cfa33ed37d9510dab6b 100644 (file)
 #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,
@@ -57,13 +36,10 @@ public:
                 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);