forked from mamont-92/EqRec2Cubemap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
25 lines (20 loc) · 795 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include "CubemapQuickRender.h"
#include "MapsImageProvider.h"
int main(int argc, char *argv[])
{
#if defined(Q_OS_WIN)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
QGuiApplication app(argc, argv);
qRegisterMetaType<CubemapQuickRender::Scheme>("CubemapQuickRender::Scheme");
qRegisterMetaType<CubemapQuickRender::Scheme>("Renderer::Scheme");
qmlRegisterType<CubemapQuickRender>("SceneGraphRendering", 1, 0, "Renderer");
QQmlApplicationEngine engine;
engine.addImageProvider("maps", MapsImageProvider::instance());
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
if (engine.rootObjects().isEmpty())
return -1;
return app.exec();
}