#include <cstdio>
#include <iostream>
#include <QApplication>
#include <QSurfaceFormat>
#include "player.h"
extern "C" int axal_main(int argc, char** argv) {
QSurfaceFormat fmt;
fmt.setVersion(3, 3);
fmt.setOption(QSurfaceFormat::DeprecatedFunctions, false);
fmt.setProfile(QSurfaceFormat::CoreProfile);
fmt.setRenderableType(QSurfaceFormat::OpenGL);
QSurfaceFormat::setDefaultFormat(fmt);
QApplication app(argc, argv);
ax::Player player(argc == 0 ? NULL : argv[1]);
player.show();
return app.exec();
}
#ifdef AXAL_MAIN
int main(int argc, char** argv) {
return axal_main(argc, argv);
}
#endif