#include <QSurfaceFormat>
#include <string>
+#include "basic_stats.h"
#include "context.h"
#include "flags.h"
#include "image_input.h"
int main(int argc, char *argv[])
{
- parse_flags(argc, argv);
+ parse_flags(PROGRAM_NAGERU, argc, argv);
if (global_flags.va_display.empty() ||
global_flags.va_display[0] != '/') {
av_register_all();
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
- QApplication app(argc, argv);
QSurfaceFormat fmt;
fmt.setDepthBufferSize(0);
QGLFormat::setDefaultFormat(QGLFormat::fromSurfaceFormat(fmt));
+ QApplication app(argc, argv);
global_share_widget = new QGLWidget();
if (!global_share_widget->isValid()) {
fprintf(stderr, "Failed to initialize OpenGL. Nageru needs at least OpenGL 3.1 to function properly.\n");
uses_mlock = true;
}
- pthread_setname_np(pthread_self(), "Nageru_UI");
-
int rc = app.exec();
global_mixer->quit();
mainWindow.mixer_shutting_down();