1
General / SFML 2.0 requires full file path...
« on: April 25, 2012, 12:52:40 pm »
Hello, I have noticed that whenever you specify something like a texture, sound, etc. You have
to specify the full file path for it to work. for example this will not work:
Reason: could not find file. You have to do it this way for it to work:
to specify the full file path for it to work. for example this will not work:
sf::Texture texture;
texture.loadFromFile("image.png");
This doesn't work, I made sure I put it in the same directory as the executable. It just says failed to load image.texture.loadFromFile("image.png");
Reason: could not find file. You have to do it this way for it to work:
sf::Texture texture;
texture.loadFromFile("C:/Users/Gwhiz/Documents/test/bin/Debug/image.png");
Is this a bug, or is it supposed to be like this?
texture.loadFromFile("C:/Users/Gwhiz/Documents/test/bin/Debug/image.png");