Page 1 of 1

Panning/zooming

Posted: Mon Dec 14, 2009 02:04
by Nitro
Hello,

imagine the windows in my application are spread within an area of say 10,000x10,000 . Now I have the default viewport of say 800x600. I want to be able to move this viewport around, so I can see the different windows. Furthermore I'd like to zoom out, at the most extreme level displaying all windows inside the 10,000x10,000 area, all shown very small only of course.

How can I realize this with cegui? So far I have messed around with the viewport of the renderer and viewport target, but that does not work as expected.

-Matthias

Re: Panning/zooming

Posted: Mon Dec 14, 2009 19:48
by CrazyEddie
I don't have and specific insight into how to go about this. I guess creating a container window with the appropriate dimensions, adding the content to it, and then setting absolute negative offsets could achieve the panning (basically like a scrollable pane). For the zooming, I'm not sure what to suggest at the moment - it's something I've never tried! So, your guess is as good as mine (yes, I know that's a lame answer :lol:).

CE.