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

Author Topic: Change window position - event  (Read 2017 times)

0 Members and 1 Guest are viewing this topic.

MichX

  • Newbie
  • *
  • Posts: 9
    • View Profile
Change window position - event
« on: September 30, 2014, 02:09:36 pm »
Hi, first of all sorry for my bad english.
I'd like to know is there any event or something when i catch the bar of window and start removing it (window)?
The problem is when i catch the window and dont let go other objects stop moving and when i let go of the window the objects do "big moving step". And I want call Update function when i have catching the window...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Change window position - event
« Reply #1 on: September 30, 2014, 02:27:28 pm »
Moving or resizing a window will block the application, there's nothing you can do while it's happening. The only solution with SFML is to have your event loop and your update/draw logic in two separate threads.
Laurent Gomila - SFML developer

MichX

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Change window position - event
« Reply #2 on: September 30, 2014, 02:57:33 pm »
Thanks a lot! It's good idea ;-)