Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Clearing all vertex GL data in QSGGeometry node in QQuickItem



  • I make vertex data with:

    @ QSGGeometry::ColoredPoint2D *points = geometry->vertexDataAsColoredPoint2D();
    @

    Is there a way to "erase" all the data points in a geometry node such that *points is reset? In other words, if I did not make any points there would be an empty drawing. I'm afraid that if I update some but not all points, the array will still hold memory of old vertex data that I don't want to be there.


Log in to reply