SFML community forums
Help => Graphics => Topic started 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
-
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.
-
Thanks, didn't see the SaveGLStates method. :)