SHARE
TWEET

Untitled

a guest Aug 22nd, 2019 95 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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top