wait, isn't it better to cast the windowSize rather than creating an object ? I mean
camera.setSize( Vector2f{ window.getSize() } );
isn't this better ?
camera.setSize( static_cast< Vector2f >( window.getSize() );
although I don't know very well.... I hope someone would clear me on this
Set aside programming style, you can fix the bug in your program by changing two lines:
camera.setSize({ 1000, 1000 }); // and not the physical window size
texture.create(1000, 1000);
That's one way of doing things. You could also do without the render texture and simply draw the sprite. You can also do without the view and scale the sprite itself. Whatever makes more sense for your app.