Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
Zoom and Gui
Print
Pages: [
1
]
Author
Topic: Zoom and Gui (Read 1627 times)
0 Members and 1 Guest are viewing this topic.
Birdron
Newbie
Posts: 17
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.
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Re: Zoom and Gui
«
Reply #1 on:
June 25, 2014, 08:46:44 am »
Use a separate view for your GUI.
Logged
Laurent Gomila - SFML developer
Birdron
Newbie
Posts: 17
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?
Logged
Ixrec
Hero Member
Posts: 1241
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.
Logged
Birdron
Newbie
Posts: 17
Re: Zoom and Gui
«
Reply #4 on:
June 25, 2014, 09:35:35 am »
Ok, thank you.
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
Zoom and Gui
anything