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

Author Topic: Re: How to create a rounded rectangle? Give me the code pls  (Read 1634 times)

0 Members and 1 Guest are viewing this topic.

sggocu88

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: How to create a rounded rectangle? Give me the code pls
« on: February 22, 2017, 09:15:46 pm »
Hi. How can i create a rounded rectangle ? i'm beggnier so please give me a code with a function to do this or a class or something .
« Last Edit: February 22, 2017, 09:46:16 pm by eXpl0it3r »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10828
    • View Profile
    • development blog
    • Email
Re: How to create a rounded rectangle? Give me the code pls
« Reply #1 on: February 22, 2017, 10:05:04 pm »
Don't use all-caps in titles again, otherwise I'll next time just remove the topic.

Just because you're a beginner doesn't entitle you to have others write all the code for you. ;)

Start off by properly describing what you want. What is a rounded rectangle in your opinion? Does it need to be filled? Just have a border outline? Does it need to dynamically change size?

Then tell us what you have tried already. Did you look at the documentation to see what SFML provides? Did you think about, how a rounded rectangle can be achieved?

Programming is not about going to a forum and demanding to receive code that one can copy-paste, coding is about solving problems.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

sggocu88

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: How to create a rounded rectangle? Give me the code pls
« Reply #2 on: February 22, 2017, 10:30:01 pm »
Ok. I searched on the wiki and i found the code.