I already thought about this method.
Now the funny part:
I get the problem managed if i zoom in and only with 2 and 0,5 and use only 16:9 view resolutions.
But i absolutly can´t get my minimap managed for higher resolution´s, no matter what i do and i use sf::RenderTexture there
->My RenderTexture Function
oid HUD::DrawOnRenderTexture(int pLevel, sf::Sprite pBg, sf::Sprite pMain, sf::Sprite pColli, sf::Sprite pPlayer)
{
RenderTexture.clear(sf::Color(33,100,44,255));
sf::View testview(sf::FloatRect(0, 0,800,800));
// testview.setViewport((sf::FloatRect(0.75, 0.1, 0.2, 0.2)));
testview.zoom(1);
testview.setCenter(pPlayer.getPosition().x+16,pPlayer.getPosition().y+16);
RenderTexture.setView(testview);
RenderTexture.draw(pBg);
if(pLevel == 1)
{
RenderTexture.draw(pMain);
RenderTexture.draw(pPlayer);
}
else
{
RenderTexture.draw(pPlayer);
RenderTexture.draw(pMain);
}
//RenderTexture.draw(circle);
//RenderTexture.draw(pColli);
RenderTexture.display();
}
The creating of the RenderTexture is done in the Constructor of the map class
->RenderTexture.create(800,800);
And after all it gets circleshape.settexture(rendertexturestuff); 'd.
do you see a mistake on the flow? Otherwise a create one more example for this tomorrow