SFML community forums

Help => Graphics => Topic started by: tipfehler on November 29, 2011, 07:53:04 pm

Title: [Solved] Sfml2 and Sprites
Post by: tipfehler on November 29, 2011, 07:53:04 pm
Hi,

I'm new to Sfml and I have a problem with the sf::sprite class. My intention was to blend in an image as an intro and then start with the 3d stuff. But when the sprite is loaded my quad doesn't show up. I think i missunderstand the concept of this class in some way. I created an example to show the problem.

http://pastebin.com/rBmVHpkv

Without the sprite, the quad is drawn. Can someone see whats wrong in this code?

Thanks! :)

tipfehler
Title: [Solved] Sfml2 and Sprites
Post by: Laurent on November 29, 2011, 10:47:18 pm
SFML messes up your own OpenGL states. Have a look at the documentation and the OpenGL tutorial to find out how to solve this problem.
Title: [Solved] Sfml2 and Sprites
Post by: tipfehler on November 29, 2011, 11:41:04 pm
Thanks, didn't see the SaveGLStates method. :)