pTex is TexturePtr to a valid Ogre texture.
Code: Select all
CEGUI::StaticImage * statImage = (CEGUI::StaticImage *)guiWindowMgr.createWindow("TaharezLook/StaticImage", "testImage");
CEGUI::Texture* testTex = guiRenderer->createTexture(pTex);
CEGUI::Imageset* rttImageSet = CEGUI::ImagesetManager::getSingleton().createImageset((CEGUI::utf8*)"RttImageset",testTex);
rttImageSet->defineImage((CEGUI::utf8*)"BonusImage",
CEGUI::Point(CEGUI::Vector2(0,0)),
CEGUI::Size(testTex->getWidth(), testTex->getHeight()),
CEGUI::Point(CEGUI::Vector2(0,0)));
statImage->setImage("RttImageset", "BonusImage");
Thanks in advance