diff options
author | Julian T <julian@jtle.dk> | 2020-07-26 12:56:27 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-07-26 12:56:27 +0200 |
commit | 893176a0b18a2281abe09def716ccc3db5583c3f (patch) | |
tree | a34da79b7dc0fcdbdd39e2a3f4000cc6a1c0a896 /app/draw.hpp | |
parent | 18960c4b88ce912e08b12182b835a7de75388b78 (diff) |
Implemented object intersection and startet work on render gui
Diffstat (limited to 'app/draw.hpp')
-rw-r--r-- | app/draw.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
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 <qimage.h> +#include <qwidget.h> + +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 |