SFML community forums
Help => Graphics => Topic started by: Finn on August 24, 2010, 09:05:01 pm
-
Hey
I wanted to know if there's a way to use a sf::View with just a few elements on the screen.
The thing is that I have a interface which should not be moved. But my interface is a little bit on the map as you can see here:
http://image-upload.de/image/hbbhFV/1ec8c0c14d.png
Suggestions?
Greets,
Finn
-
Sure. You need 2 views. (one of them can be the default view)
- set view1
- draw your game
- set view2
- draw your interface
If you never move view2, your interface will never move.
-
Ah thx...works perfect!
I think I just didn't get how views are supposed to use :D