Page 1 of 1
load image
Posted: Tue Dec 27, 2005 01:17
by Zoldan
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?
Re: load image
Posted: Tue Dec 27, 2005 13:50
by MandM
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 ?
Re: load image
Posted: Tue Dec 27, 2005 14:12
by Zoldan
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)
Re: load image
Posted: Tue Dec 27, 2005 16:29
by MandM
you'll have to make another imageset and load it.
Re: load image
Posted: Tue Dec 27, 2005 16:53
by Zoldan
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 ...