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

Author Topic: Displaying user-created objects??  (Read 1838 times)

0 Members and 1 Guest are viewing this topic.

Hawkpath

  • Newbie
  • *
  • Posts: 4
    • View Profile
Displaying user-created objects??
« 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?

Lupinius

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Displaying user-created objects??
« Reply #1 on: September 11, 2010, 12:51:10 am »
You could use a std::vector and add a circle everytime the user clicks. Then you could through the vector and draw every element.