Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef STARDUSTGUIAPPLICATION_H
- #define STARDUSTGUIAPPLICATION_H
- #include <QtGui/QGuiApplication>
- #include <QQuickWindow>
- #include <QOpenGLFramebufferObject>
- class StardustGUIApplication : public QGuiApplication
- {
- Q_OBJECT
- public:
- StardustGUIApplication(int argc, char* argv[]) : QGuiApplication(argc, argv) {}
- public slots:
- void setFBO(QQuickWindow *window, QOpenGLFramebufferObject *fbo) {
- window->setRenderTarget(fbo);
- }
- };
- #endif // STARDUSTGUIAPPLICATION_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement