Panning/zooming

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Nitro
Not too shy to talk
Not too shy to talk
Posts: 34
Joined: Wed Jan 12, 2005 12:06

Panning/zooming

Postby Nitro » Mon Dec 14, 2009 02:04

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

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Panning/zooming

Postby CrazyEddie » Mon Dec 14, 2009 19:48

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.


Return to “Help”

Who is online

Users browsing this forum: Google [Bot] and 12 guests