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

Author Topic: Drawn vertex array not showing up when cleared between frames  (Read 1451 times)

0 Members and 1 Guest are viewing this topic.

ludolover

  • Newbie
  • *
  • Posts: 1
    • View Profile
I have a vertex array that is being processed, then drawn to a RenderWindow. After calling display on the window, I want to clear the vertex array, making it ready for another round of processing. However, when clearing it - nothing shows up in the window. It works when not clearing, but now I'm drawing junk since the number of vertices differ between frames...

my loop (pseudo):

  populate vertex array
  clear window
  draw vertex array to window
  display window
  clear vertex array (now nothing shows in window)

Am i doing something wrong here (probably)? Help!

 
 

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Drawn vertex array not showing up when cleared between frames
« Reply #1 on: June 11, 2020, 07:17:52 am »
Seeing actual code may help.
Laurent Gomila - SFML developer