Hello,
is there the possibility to tell CEGUI to use the Ogre resource provider to load data from *.zip files.
Using Ogre resource provider
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Using Ogre resource provider
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.
If it is not happening, what issue are you seeing?
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
-
Guest
Re: Using Ogre resource provider
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
I doubt it is possible with the actual code.
--
Chris
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Using Ogre resource provider
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.
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.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 14 guests
