Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Clearing all vertex GL data in QSGGeometry node in QQuickItem
Forum Updated to NodeBB v4.3 + New Features

Clearing all vertex GL data in QSGGeometry node in QQuickItem

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 485 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    qttester5
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved