Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef STARDUSTGUIAPPLICATION_H
  2. #define STARDUSTGUIAPPLICATION_H
  3.  
  4. #include <QtGui/QGuiApplication>
  5. #include <QQuickWindow>
  6. #include <QOpenGLFramebufferObject>
  7.  
  8. class StardustGUIApplication : public QGuiApplication
  9. {
  10.     Q_OBJECT
  11. public:
  12.     StardustGUIApplication(int argc, char* argv[]) : QGuiApplication(argc, argv) {}
  13. public slots:
  14.     void setFBO(QQuickWindow *window, QOpenGLFramebufferObject *fbo) {
  15.         window->setRenderTarget(fbo);
  16.     }
  17. };
  18.  
  19. #endif // STARDUSTGUIAPPLICATION_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement