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?
load image
Moderators: CEGUI MVP, CEGUI Team
Re: load image
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
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
you'll have to make another imageset and load it.
Re: load image
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 ...
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 3 guests