SFML community forums

Help => General => Topic started by: syndicatedragon on June 14, 2013, 11:07:37 pm

Title: Multiple "world spaces" in the same window?
Post by: syndicatedragon on June 14, 2013, 11:07:37 pm
Is is possible to have multiple world coordinate spaces in the same window? Here is an example of what I mean. Let's say I want to put a map display in one half of the window, and a text display in the other. What I would like is that the origin of both the map display and text display to both be 0, 0. That way they can be rendered independently of each others' size and position. It seems like I could accomplish this by rendering to textures and then putting those textures where I want them, but I wanted to make sure the engine didn't already support this in a different way before I started.

Thanks.
Title: Re: Multiple "world spaces" in the same window?
Post by: The Hatchet on June 14, 2013, 11:09:24 pm
Pretty sure you can accomplish what you want with Views.  http://www.sfml-dev.org/tutorials/2.0/graphics-view.php