Debian Codegraph @

tests/manual/compute-particles/main.cpp

raw symbols SCIP
1 // Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4 #include <QGuiApplication>
5 #include <QQuickView>
6 #include <Qt3DRender/qt3drender-config.h>
7
8 int main(int argc, char* argv[])
9 {
10 QGuiApplication app(argc, argv);
11
12 #if !QT_CONFIG(qt3d_rhi_renderer)
13 qputenv("QSG_RHI_BACKEND", "opengl");
14 #endif
15
16 QQuickView view;
17
18 view.resize(500, 500);
19 view.setResizeMode(QQuickView::SizeRootObjectToView);
20 view.setSource(QUrl("qrc:/main.qml"));
21 view.show();
22
23 return app.exec();
24 }