Hello again everyone, so i'm still learning sfml and so far everything's going great, but i'm having a problem loading an image to the screen, here's the code:
sf::Texture texture;
if (!texture.loadFromFile("C:\Users\User\Pictures\Photoshop Pictures\Ghost1.jpg"))
{
cout<<"Error#1 - Couldn't Load Texture files Correctly.\n";
}
sf::Sprite sprite(texture);
sprite.setPosition(100.f,100.f);
mWindow.clear();
mWindow.draw(mPlayer);
mWindow.display();
I don't know what i'm doing wrong, the picture isn't rendering.
Thank you.