]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
robomon: Test OpenGL drawing
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 25 Apr 2010 08:26:31 +0000 (10:26 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 25 Apr 2010 08:26:31 +0000 (10:26 +0200)
src/robomon/RobomonAtlantis.cpp

index ebf8b5a65c5580cf358fc8f920b517754a00c483..7261eb7e852c1535870460d97544d25fb028ac2e 100644 (file)
@@ -44,6 +44,7 @@
 #include <QKeyEvent>
 #include <QDebug>
 #include <QMessageBox>
+#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);