SFML community forums
Help => Graphics => Topic started by: jdindia on November 29, 2008, 05:58:08 am
-
I've recently started using SFML in a platform game. Because I had polygonal textured tiles, I had to do a bit of source browsing to make sure my OpenGL calls wouldn't cause trouble with the generic SFML sprites I was using.
I discovered that the SFML RenderWindow Draw call was setting the projection matrix and then calling the drawable's render function. This seems a bit strange to me. I'd expect SetView to change the matrix and then everything else to assume it had been set properly.
-
SFML does have a sf::RenderTarget::PreserveOpenGLStates() function you may want to look into.
I'm doing a very small amount of OpenGL and I haven't had any problems yet.