summaryrefslogtreecommitdiffstats
path: root/examples/tessellation-modes
diff options
context:
space:
mode:
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