diff edview.h @ 385:eb5b793c8867

GL display widget skeleton.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 18 Oct 2012 20:10:31 +0300
parents
children 28a74940f2b6
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/edview.h	Thu Oct 18 20:10:31 2012 +0300
@@ -0,0 +1,27 @@
+#ifndef EDVIEW_H
+#define EDVIEW_H
+
+#include <QtOpenGL>
+
+class DemoView : public QGLWidget
+{
+    Q_OBJECT
+
+public:
+    DemoView(QWidget *parent);
+    ~DemoView();
+
+    void saveGLState();
+    void restoreGLState();
+
+    void paintEvent(QPaintEvent *);
+
+public slots:
+    void draw();
+
+private:
+    QGLFramebufferObject *render_fbo;
+    QGLFramebufferObject *texture_fbo;
+};
+
+#endif