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

Author Topic: Zoom and Gui  (Read 1623 times)

0 Members and 1 Guest are viewing this topic.

Birdron

  • Newbie
  • *
  • Posts: 17
    • View Profile
Zoom and Gui
« on: June 25, 2014, 08:46:03 am »
Hi,
   When view is zoom in/out everything zoom in/out with it. Now I have some gui onscreen, which I don't want to zoom with map. How do I do it?

Thank you.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Zoom and Gui
« Reply #1 on: June 25, 2014, 08:46:44 am »
Use a separate view for your GUI.
Laurent Gomila - SFML developer

Birdron

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Zoom and Gui
« Reply #2 on: June 25, 2014, 09:15:01 am »
That mean I have to call view.setView continuously in loop. Is it ok?

Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: Zoom and Gui
« Reply #3 on: June 25, 2014, 09:23:43 am »
Setting the view is not expensive; it's just a couple of floats.  So yes it's okay.

Birdron

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Zoom and Gui
« Reply #4 on: June 25, 2014, 09:35:35 am »
Ok, thank you.