SHARE
TWEET

Untitled

a guest Aug 22nd, 2019 83 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 : QGuiApplication
  9. {
  10. public:
  11.     StardustGUIApplication(int argc, char** argv) : QGuiApplication(argc, argv) {}
  12. public slots:
  13.     void setFBO(QQuickWindow &window, QOpenGLFramebufferObject &fbo) {
  14.         window.setRenderTarget(&fbo);
  15.     }
  16.  
  17.     // QObject interface
  18. public:
  19.     bool event(QEvent *event);
  20.     bool notify(QObject *, QEvent *);
  21.  
  22. protected:
  23.     bool compressEvent(QEvent *, QObject *receiver, QPostEventList *);
  24. };
  25.  
  26. #endif // STARDUSTGUIAPPLICATION_H
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top