SFML community forums

Help => Graphics => Topic started by: areriff on June 20, 2016, 03:49:00 pm

Title: How to combine two shapes together?
Post by: areriff 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?
Title: Re: How to combine two shapes together?
Post by: eXpl0it3r 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.
Title: Re: How to combine two shapes together?
Post by: areriff on June 20, 2016, 04:46:10 pm
Thanks, I'll try it.