Using Ogre resource provider

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
Nocs
Just popping in
Just popping in
Posts: 7
Joined: Fri Mar 04, 2005 21:05

Using Ogre resource provider

Postby Nocs » Thu Mar 10, 2005 18:08

Hello,

is there the possibility to tell CEGUI to use the Ogre resource provider to load data from *.zip files.

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

Re: Using Ogre resource provider

Postby CrazyEddie » Fri Mar 11, 2005 09:18

Under Ogre the default is for all files to be loaded via the Ogre resource manager system, so this should be happening by default.

If it is not happening, what issue are you seeing?

CE.

Guest

Re: Using Ogre resource provider

Postby Guest » Fri Mar 11, 2005 09:38

As i understand it, Nocs wants to open a zip file containing images with the Ogre resource manager and then display one of those images in a StaticImage in CEGUI.

I doubt it is possible with the actual code.

--
Chris

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

Re: Using Ogre resource provider

Postby CrazyEddie » Fri Mar 11, 2005 09:48

You obviously have to list the .zip in your resources.cfg file. Everything else should work as expected since CEGUI literally just asks Ogre to load the resource.

To display an image file in a StaticImage, you create a CEGUI::Texture from the image file, use the CEGUI::Texture to create an Imageset, define an Image for the Imageset as appropriate, and finally assign the Imageset/Image to the StaticImage (this has been discussed a few fimes). It should not matter whether the source texture image originates from a normal file or from within an archive.

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 14 guests