diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-15 13:57:22 +0100 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-15 13:57:22 +0100 |
commit | 60b0244b2e13eb23e7f8b79616c6a0742377d780 (patch) | |
tree | a9ed13ea03977b3ab8ac28106b591582fd7a63ce | |
parent | 16b43aa6a0c358e1539f5ba4c7327eab232f806e (diff) |
Main: updated visuals.
* Multisampling setup code is now more conservative.
* Full plot's glyphs are now invisible by default.
-rw-r--r-- | main.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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); |