diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2017-06-02 16:19:17 +0200 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2018-03-19 09:06:35 +0000 |
commit | 4b83e2ee155c9ebf71e2fc46ab9abdb40bbb1061 (patch) | |
tree | f6d9074e336cce1ded818cdecd14e46c847053c3 /src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h | |
parent | ab046302d593be2bfc368a321417a208d88f53ca (diff) |
RenderStates: rework to split node and rendering part
The apply method was removed from GenericState and its subclasses.
This allows to keep the GenericStates in the aspect part and let the renderer
perform the right calls based on the state class it is provided with.
Change-Id: I9c3ac04b4eb489e7443e67615e35e850c0aba07f
Task-number: QTBUG-61151
Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h')
-rw-r--r-- | src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h b/src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h index 8efdcbc63..2881812e5 100644 --- a/src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h +++ b/src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h @@ -79,6 +79,7 @@ class AttachmentPack; class Attribute; class Buffer; class ShaderManager; +struct StateVariant; enum TextureScope { @@ -152,6 +153,10 @@ public: // RenderState void setCurrentStateSet(RenderStateSet* ss); RenderStateSet *currentStateSet() const; + void applyState(const StateVariant &state); + + void resetMasked(qint64 maskOfStatesToReset); + void applyStateSet(RenderStateSet *ss); // Wrappers void clearColor(const QColor &color); |