summaryrefslogtreecommitdiffstats
path: root/examples/tessellation-modes
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2014-09-15 17:04:13 +0200
committerSean Harmer <sean.harmer@kdab.com>2014-09-30 00:23:23 +0200
commitf382993d407ae57302e3999e89783779c97716a0 (patch)
treec625c07a00e8110890a378ec899d9ef44ca76a78 /examples/tessellation-modes
parent7c05bc82dbf0e200c6a6534a70dea9f2ba42fcc5 (diff)
Comparison operator for QAbstractMeshFunctor subclasses
Change-Id: I18f0c46631615787a5505f7591514bfd33ac6bd0 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples/tessellation-modes')
-rw-r--r--examples/tessellation-modes/tessellatedquadmesh.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/tessellation-modes/tessellatedquadmesh.cpp b/examples/tessellation-modes/tessellatedquadmesh.cpp
index de524073a..d0bb465ba 100644
--- a/examples/tessellation-modes/tessellatedquadmesh.cpp
+++ b/examples/tessellation-modes/tessellatedquadmesh.cpp
@@ -85,6 +85,14 @@ public:
mesh->setVerticesPerPatch(4);
return mesh;
}
+
+ bool operator ==(const Qt3D::QAbstractMeshFunctor &other) const
+ {
+ const TessellatedQuadMeshFunctor *otherFunctor = dynamic_cast<const TessellatedQuadMeshFunctor *>(&other);
+ if (otherFunctor != Q_NULLPTR)
+ return true;
+ return false;
+ }
};
Qt3D::QAbstractMeshFunctorPtr TessellatedQuadMesh::meshFunctor() const