From 4b83e2ee155c9ebf71e2fc46ab9abdb40bbb1061 Mon Sep 17 00:00:00 2001 From: Paul Lemire Date: Fri, 2 Jun 2017 16:19:17 +0200 Subject: 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 --- src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h') 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); -- cgit v1.2.3