mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-04-01 21:19:39 +02:00
28 lines
480 B
C++
28 lines
480 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[])
|
|
{
|
|
QApplication app(argc, argv);
|
|
|
|
if (!QGLFormat::hasOpenGL())
|
|
{
|
|
std::cerr << "This system has no OpenGL support" << std::endl;
|
|
return 1;
|
|
}
|
|
|
|
MainWindow window;
|
|
window.show();
|
|
|
|
return app.exec();
|
|
}
|
|
|
|
|