hello im having a problem with my future game (lol)
the proble is that i cannot load my image correctly, well, better saying, the image wont show in my game
heres the important code
int main()
{
sf::View View(sf::FloatRect(1000, 4000, 1080, 4060)); //position of view
sf::Image map;
if(!map.LoadFromFile("worldmap2.png"))
std::cout << "Didnt load map!" << std::endl;//this is sadly not the problem...
sf::Sprite mapp;
mapp.SetImage(map);
mapp.SetPosition(0,0); //set it to the right place
Game.Draw(mapp); //draw it
}
again, my problem is that when i compile, my other stuff shows, but not the map at all ._.
I'm using Code::Blocks with MingW compiler, and my image size is 5000,5000 pixels and 573 KB