aboutsummaryrefslogtreecommitdiff
path: root/app/mainwindow.cpp
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-08-06 19:21:49 +0200
committerJulian T <julian@jtle.dk>2020-08-06 19:22:37 +0200
commit4348cc9581bfea05359485c5d2d074132d0271da (patch)
tree0c6d92a90ac4cf9acd326f632dcdc962ddca013a /app/mainwindow.cpp
parent893176a0b18a2281abe09def716ccc3db5583c3f (diff)
Renders scenes with a single hardcoded light and green objects
Diffstat (limited to 'app/mainwindow.cpp')
-rw-r--r--app/mainwindow.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp
index e5f9bfb..3077168 100644
--- a/app/mainwindow.cpp
+++ b/app/mainwindow.cpp
@@ -1,8 +1,12 @@
#include "mainwindow.hpp"
-MainWindow::MainWindow()
- : drawer(500, 500) {
+MainWindow::MainWindow(Renderer r)
+ : m_drawer(500, 500),
+ m_render(this, m_drawer, r)
+{
+
+ setCentralWidget(&m_drawer);
+
- setCentralWidget(&drawer);
}