Improved the style of the control rendering.

This commit is contained in:
Tats
2014-05-03 00:26:02 -04:00
parent 3ad20ddd9b
commit f5d375442a
9 changed files with 177 additions and 70 deletions
+3 -2
View File
@@ -62,13 +62,14 @@ void MapperGLCanvas::draw(QPainter* painter)
void MapperGLCanvas::enterDraw(QPainter* painter)
{
Q_UNUSED(painter);
// Clear to black.
qglClearColor(Qt::black);
// Clear buffer.
glClear(GL_COLOR_BUFFER_BIT);
// Antialiasing.
painter->setRenderHint(QPainter::Antialiasing);
}
void MapperGLCanvas::exitDraw(QPainter* painter)