diff options
author | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2014-07-02 16:56:26 +0200 |
---|---|---|
committer | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2014-07-29 17:54:43 +0200 |
commit | 9c67029ee5aca18ae02e740afbf6d0f883799ebd (patch) | |
tree | 76479e72ce3b9b0f993ddbc8a11c0d02775cbcc6 /src/quick/scenegraph/coreapi/qsgrenderer_p.h | |
parent | 4c58d2a83736545f473559cb3e04133343b6194a (diff) |
Move QSGRenderer::updateStencilClip down to QSGBatchRenderer
This convenience method is currently only used by the batch renderer.
Moving it allows removing the QOpenGLFunction inheritance of
QSGRenderer and unbinding it slightly from the rendering implementation.
Change-Id: I4322952f843de8d950ced32885feee8d6c4a2730
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/quick/scenegraph/coreapi/qsgrenderer_p.h')
-rw-r--r-- | src/quick/scenegraph/coreapi/qsgrenderer_p.h | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgrenderer_p.h b/src/quick/scenegraph/coreapi/qsgrenderer_p.h index f0cd06abe9..e24a6b652f 100644 --- a/src/quick/scenegraph/coreapi/qsgrenderer_p.h +++ b/src/quick/scenegraph/coreapi/qsgrenderer_p.h @@ -42,13 +42,10 @@ #ifndef QSGRENDERER_P_H #define QSGRENDERER_P_H +#include <qcolor.h> #include <qset.h> #include <qhash.h> -#include <qcolor.h> -#include <qopenglfunctions.h> -#include <qopenglshaderprogram.h> - #include "qsgnode.h" #include "qsgmaterial.h" #include <QtQuick/qsgtexture.h> @@ -67,18 +64,10 @@ class QSGNodeUpdater; Q_QUICK_PRIVATE_EXPORT bool qsg_test_and_clear_fatal_render_error(); Q_QUICK_PRIVATE_EXPORT void qsg_set_fatal_renderer_error(); -class Q_QUICK_PRIVATE_EXPORT QSGRenderer : public QObject, public QOpenGLFunctions +class Q_QUICK_PRIVATE_EXPORT QSGRenderer : public QObject { Q_OBJECT public: - enum ClipTypeBit - { - NoClip = 0x00, - ScissorClip = 0x01, - StencilClip = 0x02 - }; - Q_DECLARE_FLAGS(ClipType, ClipTypeBit) - enum ClearModeBit { ClearColorBuffer = 0x0001, @@ -142,7 +131,6 @@ Q_SIGNALS: protected: virtual void render() = 0; - QSGRenderer::ClipType updateStencilClip(const QSGClipNode *clip); const QSGBindable *bindable() const { return m_bindable; } @@ -160,8 +148,6 @@ protected: qreal m_current_opacity; qreal m_current_determinant; qreal m_device_pixel_ratio; - QRect m_current_scissor_rect; - int m_current_stencil_value; QSGRenderContext *m_context; @@ -175,8 +161,6 @@ private: QSet<QSGNode *> m_nodes_to_preprocess; QMatrix4x4 m_projection_matrix; - QOpenGLShaderProgram m_clip_program; - int m_clip_matrix_id; const QSGBindable *m_bindable; |