I keep getting this error when I try to use "IncludeFromFile" for a sprite texture. I've tried to change the directory from shortened to full and change the picture just in case but it doesn't load the image.
I feel it is a mistake on my end like a mistake in calling the file or linking as I'm relatively new to both sfml and C++.
I'm using Visual studio 2019, and running a debug
int main()
{
sf::RenderWindow window(sf::VideoMode(800, 800), "Game"); //calls a window
window.setVerticalSyncEnabled(true);
sf::Texture t1;
t1.loadFromFile("Images/whitePawn.png");
sf::Sprite board(t1);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear(); //set black
window.draw(board); //draw whats needed
window.display(); //reset for new frame
}
I hope someone can help
, Thanks in advance