I want to be able to display a sprite on the screen and have certain parts of that sprite be transparent.
Let me explain by example. Suppose that I have a picture of a stick figure. If I were to load this picture into sfml as an image, set it to sprite, define its subrect, and then display the resulting sprite, I would see a white box with a stick figure in it above my background.
I want the white areas of the sprite to be transparent so that only the stick-figure part of the subrect is rendered. The background will then appear where the white parts were previously.
I'm sure there is a simple solution to this problem... Any ideas?