aboutsummaryrefslogtreecommitdiff
path: root/app/draw.hpp
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-08-13 20:06:29 +0200
committerJulian T <julian@jtle.dk>2020-08-13 20:06:29 +0200
commit5b0b916c561f602723b9ae80f5462a7939b652a1 (patch)
tree6ee419f0dd1649b2c329585551f06a555a631db8 /app/draw.hpp
parent690b72664ca8d471f5c117f6ed87aeae2de0a208 (diff)
Pathtracing working with defuse and emissive lighting
Diffstat (limited to 'app/draw.hpp')
-rw-r--r--app/draw.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/draw.hpp b/app/draw.hpp
index 41d5d9c..f8e93a4 100644
--- a/app/draw.hpp
+++ b/app/draw.hpp
@@ -2,6 +2,7 @@
#define DRAW_H
#include <qimage.h>
+#include <qtimer.h>
#include <qwidget.h>
class DrawWidget : public QWidget {
@@ -15,9 +16,14 @@ class DrawWidget : public QWidget {
unsigned m_width, m_height;
~DrawWidget();
+ private slots:
+ void redraw();
+
private:
QImage m_img;
unsigned char i;
+
+ QTimer m_timer;
};
#endif