SFML community forums
Help => Graphics => Topic started by: Hawkpath on September 11, 2010, 12:45:00 am
-
Hi. In my program I'm trying to let the user click anywhere on the screen and the program will draw a circle there. I get the coords using GetMouseX amd GetMouseY. How would I redraw these in the main loop? I tried making an array, but I get errors. Is there some easy, commonly used method for displaying objects created while the program is running?
-
You could use a std::vector and add a circle everytime the user clicks. Then you could through the vector and draw every element.