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

Author Topic: How to combine two shapes together?  (Read 2254 times)

0 Members and 1 Guest are viewing this topic.

areriff

  • Newbie
  • *
  • Posts: 3
    • View Profile
How to combine two shapes together?
« on: June 20, 2016, 03:49:00 pm »
I'm new to SFML and beginner-intermediate in C++.
I have two shapes (perhaps with its own texture).
How to combined two shapes into one?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: How to combine two shapes together?
« Reply #1 on: June 20, 2016, 04:01:35 pm »
You can render two shapes on top of each other. If you want to extract the resultung image, you can render it to a render texture. Make sure to checkout the tutorials and the documentation.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

areriff

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: How to combine two shapes together?
« Reply #2 on: June 20, 2016, 04:46:10 pm »
Thanks, I'll try it.