load image

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
Zoldan
Just popping in
Just popping in
Posts: 9
Joined: Fri Oct 21, 2005 12:44

load image

Postby Zoldan » Tue Dec 27, 2005 01:17

Hey,

i load a image into my cegui using a imageset ... i want to replace the image after starting the application. is there a way to reload the imageset while the application is running?

User avatar
MandM
Just popping in
Just popping in
Posts: 13
Joined: Mon Nov 21, 2005 11:17
Location: Egypt
Contact:

Re: load image

Postby MandM » Tue Dec 27, 2005 13:50

I'm not entirely sure what you mean there. Do you want to reload a different image or a different imageset ? and where are you loading it, on a StaticImage , PushButton ?

User avatar
Zoldan
Just popping in
Just popping in
Posts: 9
Joined: Fri Oct 21, 2005 12:44

Re: load image

Postby Zoldan » Tue Dec 27, 2005 14:12

I'm loading a jpeg (for example a.jpg) to a Staticimage and i want to replace it with b.jpg oder just reload a.jpg (a.jpg is replace by my application)

User avatar
MandM
Just popping in
Just popping in
Posts: 13
Joined: Mon Nov 21, 2005 11:17
Location: Egypt
Contact:

Re: load image

Postby MandM » Tue Dec 27, 2005 16:29

you'll have to make another imageset and load it.

User avatar
Zoldan
Just popping in
Just popping in
Posts: 9
Joined: Fri Oct 21, 2005 12:44

Re: load image

Postby Zoldan » Tue Dec 27, 2005 16:53

Ok I just read a bit in the API Reference, but i don't exactly know what i have to do ...

i think i have to create a new CEGUI::Imageset an pass a name and a texture to it. texture is created from the renderer by the createTexture method which needs a filename and a resourceGroup ... but what do i have to give the method for resourceGroup?? maybe you can give me a little code snippet?

i loaded the other imagesets from xml files ...


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 5 guests