ceguiOgreRenderer to CeguiogreRenderer and some
Posted: Sun Sep 25, 2011 07:40
Hello i am using this code for a minimap . The problem is i need the ogrecegui renderer to make it work but i'm using cegui ogrerenderer.
this is the code
is there another way to do somthing like this with ceguiogre renderer?thanks
this is the code
Code: Select all
CEGUI::Texture* cetex = GUIManager::instance()->_guiRenderer->createTexture((CEGUI::utf8*) “mmTex”);
//CEGUI require an imageset to store the texture
CEGUI::Imageset* imageset = CEGUI::ImagesetManager::getSingleton().createImageset((CEGUI::utf8*)”minimapTexImageset”, cetex);
imageset->defineImage((CEGUI::utf8*)”minimapImage”,
CEGUI::Point(0.0f, 0.0f),
CEGUI::Size(cetex->getWidth(), cetex->getHeight()),
CEGUI::Point(0.0f,0.0f));
//retrieve the CEGUI StaticImage(window) used to render the minimap
CEGUI::Window* si = CEGUI::WindowManager::getSingleton().getWindow((CEGUI::utf8*)”MiniMap”);
si->setProperty(“Image”, CEGUI::PropertyHelper::imageToString(
&imageset->getImage((CEGUI::utf8*)|CEGUI::utf8*)”minimapImage”)));
is there another way to do somthing like this with ceguiogre renderer?thanks