From: Michal Sojka Date: Sun, 25 Apr 2010 08:26:31 +0000 (+0200) Subject: robomon: Test OpenGL drawing X-Git-Url: http://rtime.felk.cvut.cz/gitweb/eurobot/public.git/commitdiff_plain/694ff6b288d134bd4d6b05f5f9c79f9150f6cd5f robomon: Test OpenGL drawing --- diff --git a/src/robomon/RobomonAtlantis.cpp b/src/robomon/RobomonAtlantis.cpp index ebf8b5a6..7261eb7e 100644 --- a/src/robomon/RobomonAtlantis.cpp +++ b/src/robomon/RobomonAtlantis.cpp @@ -44,6 +44,7 @@ #include #include #include +#include "GlWidget.h" RobomonAtlantis::RobomonAtlantis(QWidget *parent) : QWidget(parent) @@ -109,6 +110,10 @@ void RobomonAtlantis::createPlaygroundGroupBox() playgroundScene = new PlaygroundScene(); playgroundSceneView = new PlaygroundView(playgroundScene); + if (0) { + playgroundSceneView->setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers))); + playgroundSceneView->setRenderHints(QPainter::Antialiasing); + } //playgroundSceneView->setMinimumWidth(630); //playgroundSceneView->setMinimumHeight(445); playgroundSceneView->setMatrix(QMatrix(1,0,0,-1,0,0), true);