Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int main(int argc, char *argv[]) {
  2.     // ShareOpenGLContexts is needed for using the threaded renderer
  3.     // on Nvidia EGLStreams
  4.     QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
  5.     StardustGUIApplication app(argc, argv);
  6.  
  7.     registerQMLTypes();
  8.  
  9.     QSurfaceFormat::setDefaultFormat(QQuick3DViewport::idealSurfaceFormat());
  10.  
  11.     QQmlApplicationEngine appEngine(QUrl("qrc:/core/main.qml"));
  12.  
  13.     return app.exec();
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement