Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(int argc, char *argv[]) {
- // ShareOpenGLContexts is needed for using the threaded renderer
- // on Nvidia EGLStreams
- QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
- StardustGUIApplication app(argc, argv);
- registerQMLTypes();
- QSurfaceFormat::setDefaultFormat(QQuick3DViewport::idealSurfaceFormat());
- QQmlApplicationEngine appEngine(QUrl("qrc:/core/main.qml"));
- return app.exec();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement