Hello,
I'm sure I'm making a stupid mistake somewhere, but I can't seem to load a image.png for the
"Displaying a sprite" tutorial. I have SFML up and running (I can run some of the other tutorials, like the "Using render windows" tutorial). I'm working with SFML 1.6 and MVS 2008 in Windows 7 64 bits. The only change I've made to the code of the tutorial is putting the name of the image I'm using, instead of the default name the tutorial had.
if (!Image.LoadFromFile("image.png"))
image.png is
this image, normal 32 bit png, weights 43kB, has nothing strange. And I've tried putting it in the output folder (where the .exe is generated), in the intermediate folder, in the project root, adding it to the "Resource Files" folder inside MVS. And still getting the "
Failed to load image "image.png". Reason : Unable to open file" error when I run the example code from the tutorial.
I've tried in release and debug mode, linking the correct libraries in each case, in case it made a difference.
I've tried with a different png image.
Any ideas? Thank you for your time.
Cheers!