summaryrefslogtreecommitdiffstats
path: root/src/render/framegraph
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2015-11-23 12:33:09 +0100
committerAndy Nichols <andy.nichols@theqtcompany.com>2015-11-24 16:53:24 +0000
commite088dde9105c42542d966903dc0e8891d6a870f6 (patch)
tree2abbe88e146e9538b0a8a025c6669b850d576e37 /src/render/framegraph
parent28fccfbe715251f307d407b03b64cb4936fee9e7 (diff)
QRenderAspect/Renderer: refactored to use the AbstractRenderer interface
Change-Id: I662577e6dd337b1f056f73b4a11262e902d4dde2 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'src/render/framegraph')
-rw-r--r--src/render/framegraph/framegraphnode.cpp3
-rw-r--r--src/render/framegraph/framegraphnode_p.h4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/render/framegraph/framegraphnode.cpp b/src/render/framegraph/framegraphnode.cpp
index 10629f1d8..d1718b7e5 100644
--- a/src/render/framegraph/framegraphnode.cpp
+++ b/src/render/framegraph/framegraphnode.cpp
@@ -36,6 +36,7 @@
#include "framegraphnode_p.h"
#include <Qt3DRender/private/renderer_p.h>
+#include <Qt3DRender/private/nodemanagers_p.h>
#include <Qt3DRender/qframegraph.h>
QT_BEGIN_NAMESPACE
@@ -146,7 +147,7 @@ QList<FrameGraphNode *> FrameGraphNode::children() const
}
// TO DO: We need to rework that and probably add a RenderFrameGraph element
-FrameGraphComponentFunctor::FrameGraphComponentFunctor(Renderer *renderer)
+FrameGraphComponentFunctor::FrameGraphComponentFunctor(AbstractRenderer *renderer)
: m_renderer(renderer)
{
}
diff --git a/src/render/framegraph/framegraphnode_p.h b/src/render/framegraph/framegraphnode_p.h
index 3e65ca598..707b37ea6 100644
--- a/src/render/framegraph/framegraphnode_p.h
+++ b/src/render/framegraph/framegraphnode_p.h
@@ -174,13 +174,13 @@ private:
class FrameGraphComponentFunctor : public Qt3DCore::QBackendNodeFunctor
{
public:
- explicit FrameGraphComponentFunctor(Renderer *renderer);
+ explicit FrameGraphComponentFunctor(AbstractRenderer *renderer);
Qt3DCore::QBackendNode *create(Qt3DCore::QNode *frontend, const Qt3DCore::QBackendNodeFactory *factory) const Q_DECL_OVERRIDE;
Qt3DCore::QBackendNode *get(const Qt3DCore::QNodeId &id) const Q_DECL_OVERRIDE;
void destroy(const Qt3DCore::QNodeId &id) const Q_DECL_OVERRIDE;
private:
- Renderer *m_renderer;
+ AbstractRenderer *m_renderer;
};
} // namespace Render