SFML community forums
Help => Graphics => Topic started by: nitram_cero on May 23, 2009, 08:12:01 pm
-
Help! I'm trying to use OpenGL to render and SFML for the HUD, but I can't make it to work... as soon as I draw a sf::String, the 3D rendered stuff is erased.
It's for the Mini Ludum Dare #9 48hs competition so if you have a working example it would be really appreciated.
Thanks
-MartÃn
-
SFML may be messing up your OpenGL states, if you haven't set PreserveOpenGLStates(true) (http://www.sfml-dev.org/documentation/1.5/classsf_1_1RenderTarget.htm). Or you could just be sure to set your OpenGL states each frame on your own (instead of once at the beginning of your program).
Or maybe that's not even your problem...
-
Thanks a bunch :D! You rule!