you would set the sprite's size with a call to SetSubRect -- but a subrect of nothing.
Nope, I would use sf::Sprite::Resize !
Why don't you use a sf::Shape instead?
1. When you just need to display a plain colored, border-less rectangle, I find sf::Sprite more convenient than sf::Shape (and aren't they lighter?). That's quick and easy :
sf::Sprite sprite;
sprite.Resize(10, 10);
sprite.SetSolor(sf::Color::Red);
But once you set a texture, you cannot go back to the previous behavior.
2. Also, let's say I'm using a sf::Sprite memory pool, some sprites use a texture, the others don't. I would like to "recycle" a textured sprite into a texture-less one.
I understand that sf::Sprite were meant to be used with a texture, but the API allows us to use sprites without any texture, until sf::Sprite::SetTexture is called...