Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
170
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[]);
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement