To get only a part of a sf::RenderTexture, you probably need to go the long way via sf::Image.
texture.loadFromImage(renderTexture.getTexture().copyToImage(), rect);
But can't you just apply the texture rect when you draw something? Then you don't have to create a new texture or to copy masses of pixels around.
To get only a part of a sf::RenderTexture, you probably need to go the long way via sf::Image.
texture.loadFromImage(renderTexture.getTexture().copyToImage(), rect);
But can't you just apply the texture rect when you draw something? Then you don't have to create a new texture or to copy masses of pixels around.
Actually, I think I can, since I'm using shaders anyway :D
Thanks!
Now if I only could make this work just a bit faster, damn it XD