From 893176a0b18a2281abe09def716ccc3db5583c3f Mon Sep 17 00:00:00 2001 From: Julian T Date: Sun, 26 Jul 2020 12:56:27 +0200 Subject: Implemented object intersection and startet work on render gui --- app/draw.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 app/draw.hpp (limited to 'app/draw.hpp') diff --git a/app/draw.hpp b/app/draw.hpp new file mode 100644 index 0000000..a00de79 --- /dev/null +++ b/app/draw.hpp @@ -0,0 +1,21 @@ +#ifndef DRAW_H +#define DRAW_H + +#include +#include + +class DrawWidget : public QWidget { + public: + DrawWidget(unsigned width, unsigned height); + void paintEvent(QPaintEvent*); + + QRgb *m_drawbuffer; + unsigned m_width, m_height; + + ~DrawWidget(); + private: + QImage m_img; + unsigned char i; +}; + +#endif -- cgit v1.2.3