Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: VertexArray: Erase element?  (Read 3293 times)

0 Members and 2 Guests are viewing this topic.

androphinx

  • Newbie
  • *
  • Posts: 1
    • View Profile
VertexArray: Erase element?
« on: March 27, 2012, 05:31:28 pm »
Hey there, I was kinda trying to program a particle system with help of sf::Vertex and sf::VertexArray. Works quite fine. But as I wanted to add a lifetime to my particles, I can't find a function to erase a certain vertex out of my array, when the lifetime is over.

Would be glad if something like that would be added or is there yet (and I'm too blind to find it).

Greets
androphinx

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: VertexArray: Erase element?
« Reply #1 on: March 27, 2012, 05:41:19 pm »
sf::VertexArray is provided for convenience, it's nothing more than a std::vector<sf::Vertex>. You'd better use your own container if you need more features.
Laurent Gomila - SFML developer

 

anything