Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
127
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.     // QObject interface
  19. public:
  20.     bool event(QEvent *event);
  21.     bool notify(QObject *, QEvent *);
  22.  
  23. protected:
  24.     bool compressEvent(QEvent *, QObject *receiver, QPostEventList *);
  25. };
  26.  
  27. #endif // STARDUSTGUIAPPLICATION_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement