I have 2 images. First is fullscreen, and it's my backgroud as sprite, second is one-color rectangle drawn on backgroud. Next I have text written on those layers. I want my text to be transparent to second layer which is backgroud. How to do this?
(http://i21.photobucket.com/albums/b280/marianexyx/text_on_rect_zpsqggsh6u5.png)
window.clear();
window.draw(background);
window.draw(rectangle);
text.setColor(Color(0,0,0,150));
window.draw(text);
window.display();