Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
How to combine two shapes together?
Print
Pages: [
1
]
Author
Topic: How to combine two shapes together? (Read 2254 times)
0 Members and 1 Guest are viewing this topic.
areriff
Newbie
Posts: 3
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?
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11030
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.
Logged
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
Re: How to combine two shapes together?
«
Reply #2 on:
June 20, 2016, 04:46:10 pm »
Thanks, I'll try it.
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
How to combine two shapes together?