I'm trying to make a Paint application.
How do i draw shapes/lines to a buffer like Image ? I can't paint everything directly to the window because when i resize/move etc the window it all dissapears. I wanted to do something like draw everything to an image and in main loop draw the image. How do i do that in sfml?