Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Help!I'm trying to use OpenGL to render and SFML for the HUD  (Read 2365 times)

0 Members and 2 Guests are viewing this topic.

nitram_cero

  • Full Member
  • ***
  • Posts: 166
    • View Profile
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

Imbue

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Help!I'm trying to use OpenGL to render and SFML for the HUD
« Reply #1 on: May 24, 2009, 01:35:17 am »
SFML may be messing up your OpenGL states, if you haven't set PreserveOpenGLStates(true). 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...

nitram_cero

  • Full Member
  • ***
  • Posts: 166
    • View Profile
Help!I'm trying to use OpenGL to render and SFML for the HUD
« Reply #2 on: May 24, 2009, 03:37:33 am »
Thanks a bunch :D! You rule!

 

anything