From 4348cc9581bfea05359485c5d2d074132d0271da Mon Sep 17 00:00:00 2001 From: Julian T Date: Thu, 6 Aug 2020 19:21:49 +0200 Subject: Renders scenes with a single hardcoded light and green objects --- app/mainwindow.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'app/mainwindow.cpp') 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); } -- cgit v1.2.3