SFML community forums

Help => Graphics => Topic started by: kaB00M on October 17, 2011, 06:40:22 am

Title: Mixing opengl && sf::sprite
Post by: kaB00M on October 17, 2011, 06:40:22 am
Hi. I'm wondering if someone can make a tut for using opengl along with sf::sprites. I want to draw opengl polygons in top of sprite backgrounds. Is that even possible?

Thank you.
Title: Mixing opengl && sf::sprite
Post by: Laurent on October 17, 2011, 07:54:28 am
There's an example in the SFML SDK that does exactly what you want.
Title: Mixing opengl && sf::sprite
Post by: kaB00M on October 18, 2011, 01:32:35 am
:oops:  Oops... I'm sorry about that good Sir.
I got the thing to work, but now I have a new issue: my fps drops from 60~, to 15~ by just calling PreserveOpenGLStates(true). Even if I don't draw any polygons!!! Is that normal? I think I will just stick with 2d for now.

Thank you.
Title: Mixing opengl && sf::sprite
Post by: Laurent on October 18, 2011, 08:01:59 am
Quote
my fps drops from 60~, to 15~ by just calling PreserveOpenGLStates(true)

In Debug or Release mode?