From 60b0244b2e13eb23e7f8b79616c6a0742377d780 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Fri, 15 Jan 2016 13:57:22 +0100 Subject: Main: updated visuals. * Multisampling setup code is now more conservative. * Full plot's glyphs are now invisible by default. --- main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 593c922..22b8d67 100644 --- a/main.cpp +++ b/main.cpp @@ -101,9 +101,13 @@ int main(int argc, char **argv) // Set up multisampling QSurfaceFormat fmt; - fmt.setSamples(16); fmt.setRenderableType(QSurfaceFormat::OpenGL); fmt.setVersion(4, 5); + fmt.setRedBufferSize(8); + fmt.setGreenBufferSize(8); + fmt.setBlueBufferSize(8); + fmt.setAlphaBufferSize(8); + fmt.setSamples(8); QSurfaceFormat::setDefaultFormat(fmt); QQmlApplicationEngine engine(QUrl("qrc:///main_view.qml")); @@ -178,7 +182,7 @@ int main(int argc, char **argv) cpPlot->update(); arma::vec plotOpacities(X.n_rows); - plotOpacities.fill(0.4f); + plotOpacities.fill(0.0f); plotOpacities(cpIndices).fill(0.0f); plot->setOpacityData(plotOpacities); -- cgit v1.2.3