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 - Mad Man

Pages: [1]
1
Graphics / Re: VS2012 not recognizing "Texture" within sf namespace
« on: September 05, 2013, 09:16:01 pm »
Thanks all. As expected, it was a problem with VS 2012. I just went into the configuration properties and cleared everything in C++>General>Additional Include Directories, saved, restarted VS 2012 and re-included it all and it worked.

Hope this helps anyone else who bumps into this bug.

2
Graphics / Re: VS2012 not recognizing "Texture" within sf namespace
« on: September 05, 2013, 03:54:28 am »
Even when I don't use stdafx and just directly include sfml\graphics.hpp, VS won't recognize texture as part of the namespace for some files. Even stranger, even in the files that don't recognize Texture, they still recognize other stuff like sf::Sprite and sf::Shape.

3
Graphics / VS2012 not recognizing "Texture" within sf namespace
« on: September 05, 2013, 03:00:53 am »
Hey all,

I've got a weird issue. For some reason, some of the files in my project don't detect "Texture" as a member of the sf namespace, while others do. They all include stdafx.h, which in turn includes SFML\Graphics.hpp.

But even if I just type "sf" and let the drop-down come up, Texture isn't in there for some of the files.

I've tried cleaning and rebuilding the entire solution, but I don't know what else to do.

EDIT - I'm using SFML 2.1, which I didn't build myself, and has been working fine. I'm guessing there's some weird issue with my VS 2012, but I was wondering if anyone else experienced this and had any solutions.

4
Oh man. I just realized I did something incredibly stupid(had file extensions hidden, so there was an extra .png).

Problem solved, and thanks for help expl0it3r. I'll try not to make another awful thread again.

5
I've tried putting it in the folder with the .exe, and when that failed, moved it to the folder with the .vcxproj files.
Still no dice. :(

6
Graphics / Can't load image from file in "Displaying a sprite" tutorial.
« on: January 23, 2013, 10:38:23 pm »
Hey all,

I'm having difficulty finishing the "displaying a sprite" tutorial while using VS Studio 2012. I've just copied and pasted the source code that the tutorial provides here. The project builds successfully, but no matter where I put the "sprite.tga" file in the directory, I get this error message.

"Failed to load image 'sprite.tga'. Reason: Unable to open file"

I've tried other tutorials that utilize the sfml-graphics and everything goes just fine, but if I try opening the .exe directly and not from the IDE, I get an error saying that sfml-graphics-d.dll is missing.

What am I doing wrong? Any help would be appreciated.

Pages: [1]