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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - veraFWC

Pages: [1]
1
Graphics / Masking/Erasing Portions of a shape
« on: February 18, 2016, 09:50:14 am »
Good Evening,

I'm almost dirt new to SFML, but I couldn't find any mention of what I wanted to do in the documentation, So I though I'd put it out here to see if it can actually be done.

I'm trying to used an object (preferably an sf::drawable derived object) to hide part of another. Specifically, I have a circle, and I'm trying to hide a sector of the circle, so that only the background is visible.

Intuitive I tried placing a transparent triangle over the circle, but it simply rendered an invisible triangle over top of the triangle as it was ment to. Is their any way I can subtract one shape from another, or erase part of a shape before drawing it?

Pages: [1]
anything