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

Author Topic: New Square from old square...  (Read 1216 times)

0 Members and 1 Guest are viewing this topic.

Christopher Jozwiak

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • Blog
    • Email
New Square from old square...
« on: March 22, 2013, 01:11:28 am »
Not really related to sfml per say... But more to my project using sfml.  I want to draw a new square everytime my mouse is clicked.  Not sure how to do it though. My code is at www.cjozwiak.com
Noob C++ Programmer.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10777
    • View Profile
    • development blog
    • Email
AW: New Square from old square...
« Reply #1 on: March 22, 2013, 02:20:37 am »
Are you now waiting for people to write your code? How much do you pay an hour? ;D

On a serious note there's the documentation, which is probably the best you'll ever see, then there's the search function of the forum, which holds hundreds of examples, and if that didn't help google quickly.

A vector you push back a new element everytime an event is fired, maybe?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Christopher Jozwiak

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • Blog
    • Email
Re: New Square from old square...
« Reply #2 on: March 22, 2013, 02:24:26 am »
Your Probably right.  Should think about things on my own instead of asking for others to give me advice.  Otherwise I'll get addicted to doing it.. ??? Thanks though.
Noob C++ Programmer.