SHARE
TWEET

Untitled

a guest Aug 22nd, 2019 131 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[]);
  13. public slots:
  14.     void setFBO(QQuickWindow *window, QOpenGLFramebufferObject *fbo);
  15. };
  16.  
  17. #endif // STARDUSTGUIAPPLICATION_H
  18.  
  19. //.....................................................................................................................
  20.  
  21. #include "stardustguiapplication.h"
  22. StardustGUIApplication::StardustGUIApplication(int argc, char* argv[]) : QGuiApplication(argc, argv) {
  23.  
  24. }
  25.  
  26. void StardustGUIApplication::setFBO(QQuickWindow *window, QOpenGLFramebufferObject *fbo) {
  27.     window->setRenderTarget(fbo);
  28. }
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