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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dratone

Pages: [1]
1
Graphics / Re: Good Way To "Lock" Something To A View
« on: March 14, 2017, 05:16:29 pm »
That would be the way i'd do it aswel. In my case I've created 2 views: The GameView (For seeing the world) and a UIView. The UI view I use to draw non-world related UI elements (i.e. UI elements that shouldn't be attached to a specific in-world object).

To switch between views you can use the window.setView() function:

http://www.sfml-dev.org/documentation/2.4.2/classsf_1_1RenderTarget.php#a063db6dd0a14913504af30e50cb6d946

Pages: [1]