Page 1 of 1

ceguiOgreRenderer to CeguiogreRenderer and some

Posted: Sun Sep 25, 2011 07:40
by JohnBoyMan
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

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

Re: ceguiOgreRenderer to CeguiogreRenderer and some

Posted: Mon Sep 26, 2011 12:06
by TeddyBear94
What is the minimap you want to use ?
Is it just a texture you want to load in cegui or something else ?
Teddy.

Re: ceguiOgreRenderer to CeguiogreRenderer and some

Posted: Mon Sep 26, 2011 18:23
by Jamarr
The (old) ogrecegui renderer was maintained in the OGRE codebase, not CEGUI. The (new) ceguiogre renderer is now maintained in the CEGUI codebase. So technically I think you are asking this question in the wrong forum. I doubt that CEGUI officially offers support for the ogrecegui renderer.

That said, I do believe there are some older posts and wiki pages here, so feel free to search around. However, keep in mind that there have been few (if any) posts on this over the past year. You may be better off searching and/or asking about the ogrecegui renderer on the OGRE forums and wiki.