Thank you, i went through your code, and i tried to create my own much more simpler... surprisingly it doesnt work. (just black screen appears)
sf::Sprite static_background; //to put some texture to background(red box in your code)
sf::Texture tx_static_background;
if(!tx_static_background.loadFromFile("image.png"))
return 1;
static_background.setTexture(tx_static_background); //
//-------------------------------------------------
sf::RenderTexture tx_transparent; //creating texture for the transpaent place + adding circle shape
tx_transparent.create(60, 60); //and other things to texture
tx_transparent.clear();
sf::CircleShape shape;
shape.setFillColor(sf::Color(255, 255, 255, 60));
shape.setPosition(sf::Vector2f(30.f, 30.f));
tx_transparent.draw(shape, sf::BlendNone);
tx_transparent.display(); //
//-------------------------------------------------
sf::Sprite shape_sprite;
shape_sprite.setTexture(tx_transparent.getTexture());
shape_sprite.setPosition(150.f, 150.f);
shape_sprite.setOrigin(30, 30);
sf::RenderTexture m_layer;
m_layer.create(300, 300);
m_layer.clear();
m_layer.draw(shape_sprite, sf::BlendNone);
m_layer.display();
sf::Sprite final_sprite;
final_sprite.setTexture(m_layer.getTexture());
its from beginning main(), do you know where is mistake?
Thanks for help.