Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - GSfml

Pages: [1]
1
General / Re: SFML 2.0 requires full file path...
« on: April 25, 2012, 01:15:50 pm »
It works, thanks! ;D I didn't expect such a quick reply to my question! This is part
of the reason I stopped using SDL and chose SFML over it. :)

2
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:
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.
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? :-\

Pages: [1]