diff options
Diffstat (limited to 'src/viewer/Qt3DSViewerApp.h')
-rw-r--r-- | src/viewer/Qt3DSViewerApp.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/viewer/Qt3DSViewerApp.h b/src/viewer/Qt3DSViewerApp.h index 25d2ed7..8b53e85 100644 --- a/src/viewer/Qt3DSViewerApp.h +++ b/src/viewer/Qt3DSViewerApp.h @@ -42,6 +42,7 @@ #include <QtCore/qvector.h> #include <QtCore/qstringlist.h> #include <QtGui/qsurfaceformat.h> +#include <QtGui/qopengl.h> QT_BEGIN_NAMESPACE class QQmlImageProviderBase; @@ -257,9 +258,9 @@ public: /* * @brief does the actual scene rendering * - * @return no return + * @return true if the scene needs to be rendered again in next frame */ - void Render(); + bool Render(); /* * @brief handle keyboard input @@ -324,6 +325,14 @@ public: void SetStereoEyeSeparation(double separation); double GetStereoEyeSeparation() const; + void SetStereoEyeRotation(double rotation); + double GetStereoEyeRotation() const; + + void SetStereoProgressiveEnabled(bool enabled); + bool GetStereoProgressiveEnabled() const; + + void SetSkipFramesInterval(int interval); + void setMatteColor(const QColor &color); void setShowOnScreenStats(bool s); @@ -498,6 +507,7 @@ public: void addImageProvider(const QString &providerId, QQmlImageProviderBase *provider); uint textureId(const QString &elementPath); + uint textureId(const QString &elementPath, QSize &size, GLenum &format); QString error(); @@ -549,6 +559,8 @@ Q_SIGNALS: void SigDataOutputValueUpdated(const QString &name, const QVariant &newValue); void SigPresentationReady(); void SigPresentationLoaded(); + void SigLoadShaderCacheErrors(const QString &errors); + void SigFrameDraw(); }; } // end namespace |