SFML community forums

Help => Graphics => Topic started by: newatthis on June 24, 2017, 11:22:54 am

Title: Delete Window content
Post by: newatthis on June 24, 2017, 11:22:54 am
Dear Members,

I´ve got an issue with my Program. I need to know if there is a general command in SFML to delete my whole window Content after running through a loop. My Problem is the shout down of the program after a certain amount of reps, due to the fact that created shapes in the step before are still existent.

Do you have any ideas how to fix this Problem?

This is the first time I use SFML so sorry for my low skills ;)
Title: Re: Delete Window content
Post by: eXpl0it3r on June 24, 2017, 12:35:32 pm
You should read through the official SFML tutorials.
A general render loop should consist of one clear(), some draw() and one display() call.

So it sounds like you're missing the clear() call.