The Situation:
I have images which are downloaded from a webserver (background thread of course) at runtime. These pictures represent some kind of avatar image which shall be placed in a playerframe. Important is, that these images are temporary, they are deleted when the application exits.
The Problems:
1) Again I am missing a methodname

2) Assuming the parameters of the "current" setImage method haven't changed, I need a imageset. This is not quite a problem since ImagesetManager::createImagesetFromImageFile() is fairly anything I need. But isnt there any "smarter" solution then creating a whole imageset for a single image? What I am currently doing is:
Code: Select all
Ogre::ResourceGroupManager *resmgr = Ogre::ResourceGroupManager::getSingletonPtr();
CEGUI::ImagesetManager* imgsetmgr = CEGUI::ImagesetManager::getSingletonPtr();
resmgr->addResourceLocation(".\\Temp", "FileSystem", "Temp");
try
{
CEGUI::Imageset* set = imgsetmgr->createImagesetFromImageFile(name + "Playerimageset", name + "profileimage.png", "Temp");
set->defineImage(name + "/Profileimage", CEGUI::Rect(0.0f,0.0f,114.0f, 113.0f), CEGUI::Point());
}
catch (CEGUI::RendererException& e)
{
// Probably image not found, we display nothing in that case
}