Global Window Scaleing

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
mouglue
Just popping in
Just popping in
Posts: 10
Joined: Mon Apr 04, 2005 22:36

Global Window Scaleing

Postby mouglue » Tue Jan 31, 2006 00:15

How do you handle multiple screen resolutions with CEGUI?

Is it possible to make a sigle window XML file with scaling to handle multiple resolutions (say 640x480 up to 1280x1024) or is it best to have a couple different XML files?

User avatar
martignasse
Just can't stay away
Just can't stay away
Posts: 227
Joined: Thu Apr 14, 2005 08:10
Location: Lyon, FRANCE

Re: Global Window Scaleing

Postby martignasse » Tue Jan 31, 2006 09:53

hi mouglue,

Yes, you can use only one xml layout definition for all screen resolution.

of course there is some properties at differentes levels (imageset, font, layout...) to manage how things react to the resolution change.

User avatar
mouglue
Just popping in
Just popping in
Posts: 10
Joined: Mon Apr 04, 2005 22:36

Re: Global Window Scaleing

Postby mouglue » Wed Feb 01, 2006 00:32

ok, I found the default resolution stuff in the imageset, font, and layout.

My next question.

Is there a way to let the user change that during runtime.
What I am looking for is to be able to globaly "Resize" everything about the GUI. Either Up or down. After its all been loaded.

I know this may be easy but I am just not getting it. :shock:
If someone could give me a basic code example that would be great. :P

User avatar
martignasse
Just can't stay away
Just can't stay away
Posts: 227
Joined: Thu Apr 14, 2005 08:10
Location: Lyon, FRANCE

Re: Global Window Scaleing

Postby martignasse » Wed Feb 01, 2006 13:24

I believe it's at the renderer level, with the setDisplaySize methode.

here in the API reference for the for the OpenGl renderer :

[url=http://www.cegui.org.uk/api_reference/classCEGUI_1_1OpenGLRenderer.html#279e2e4cf01e40ed2bff0b4de02ff2a3]void CEGUI::OpenGLRenderer::setDisplaySize ( const Size & sz )
[/url]

try a search on the forum with the "screen resolution" words, there was some discussions about that in the past.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 11 guests