summaryrefslogtreecommitdiffstats
path: root/src/render/backend/trianglesvisitor_p.h
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2017-03-15 10:17:05 +0100
committerPaul Lemire <paul.lemire@kdab.com>2018-02-02 13:58:34 +0000
commit437a33de9336a5c50711e63dd6dfcd86ad28d5a5 (patch)
tree6f6cbf6fa5285a79cda6a849a0b96e744ec840c6 /src/render/backend/trianglesvisitor_p.h
parent46319648436814afb5a77755dde6681e304befaf (diff)
Render: Use SIMD Vectors and Matrices in the backend
Change-Id: I19b3b2f8fcb06eb2bc600ebe370465dd15a8eabc Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/backend/trianglesvisitor_p.h')
-rw-r--r--src/render/backend/trianglesvisitor_p.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/render/backend/trianglesvisitor_p.h b/src/render/backend/trianglesvisitor_p.h
index 9428857ac..ee206f1c9 100644
--- a/src/render/backend/trianglesvisitor_p.h
+++ b/src/render/backend/trianglesvisitor_p.h
@@ -54,6 +54,8 @@
#include <Qt3DCore/qnodeid.h>
#include <Qt3DRender/QAttribute>
#include <Qt3DRender/private/bufferutils_p.h>
+#include <Qt3DCore/private/vector3d_p.h>
+#include <Qt3DCore/private/vector4d_p.h>
#include <private/qt3drender_global_p.h>
@@ -81,9 +83,9 @@ public:
void apply(const Qt3DCore::QEntity *entity);
void apply(const GeometryRenderer *renderer, const Qt3DCore::QNodeId id);
- virtual void visit(uint andx, const QVector3D &a,
- uint bndx, const QVector3D &b,
- uint cndx, const QVector3D &c) = 0;
+ virtual void visit(uint andx, const Vector3D &a,
+ uint bndx, const Vector3D &b,
+ uint cndx, const Vector3D &c) = 0;
protected:
NodeManagers *m_manager;
@@ -102,7 +104,7 @@ public:
bool setGeometry(const GeometryRenderer *renderer, const QString &attributeName);
- QVector4D getCoordinate(uint vertexIndex);
+ Vector4D getCoordinate(uint vertexIndex);
protected:
NodeManagers *m_manager;