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

Author Topic: Any Precautions to take when utilizing two RenderWindows?  (Read 1070 times)

0 Members and 1 Guest are viewing this topic.

lightfire

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • http://facebook.com/sbarna
Any Precautions to take when utilizing two RenderWindows?
« on: March 21, 2012, 08:07:57 am »
Hi all,

  I'm getting odd behavior when drawing to two different classes that both contain separate renderwindows. I've written them to be independant of one another but it seems they depend on each other in odd ways, such as needing to be initialized in a particular order. And textures don't seem to work on the second one.

  Anyway, I'm wondering if I've coded something wrong or i have to deactivate on window while drawing to the other one. Some odd quirk along those lines...

Its worth mentioning that the sprite is not displaying the texture when contained in a DLL. As in i pass the class in the DLL a pointer to a RenderWindow, tell it to draw a sprite, but the sprites texture does not show up.

~Light

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Any Precautions to take when utilizing two RenderWindows?
« Reply #1 on: March 21, 2012, 08:28:56 am »
It should work without any special precaution.

If it doesn't, please provide a complete and minimal example that reproduce your problem.
Laurent Gomila - SFML developer

 

anything