mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-04-03 14:09:34 +02:00
Conflicts: DestinationGLCanvas.cpp MainWindow.cpp MainWindow.h Mapper.h MappingManager.cpp MappingManager.h Paint.h Shape.h SourceGLCanvas.cpp Util.cpp libremapping.pro main.cpp
30 lines
557 B
C++
30 lines
557 B
C++
// NOTE: To run, it is recommended not to be in Compiz or Beryl, they have shown some instability.
|
|
|
|
#include <iostream>
|
|
#include <QApplication>
|
|
#include <QtGui>
|
|
#include "Common.h"
|
|
#include "MainWindow.h"
|
|
|
|
#include <iostream>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
// TODO: avoid segfaults when OSC port is busy
|
|
QApplication app(argc, argv);
|
|
|
|
if (! QGLFormat::hasOpenGL())
|
|
{
|
|
std::cerr << "This system has no OpenGL support" << std::endl;
|
|
return 1;
|
|
}
|
|
MainWindow win;
|
|
MainWindow::setInstance(&win);
|
|
|
|
win.show();
|
|
|
|
return app.exec();
|
|
}
|
|
|
|
|