ceguiOgreRenderer to CeguiogreRenderer and some

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

JohnBoyMan
Just popping in
Just popping in
Posts: 16
Joined: Thu Aug 25, 2011 21:51

ceguiOgreRenderer to CeguiogreRenderer and some

Postby JohnBoyMan » 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

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

TeddyBear94
Just popping in
Just popping in
Posts: 9
Joined: Tue Sep 20, 2011 08:59

Re: ceguiOgreRenderer to CeguiogreRenderer and some

Postby TeddyBear94 » Mon Sep 26, 2011 12:06

What is the minimap you want to use ?
Is it just a texture you want to load in cegui or something else ?
Teddy.

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: ceguiOgreRenderer to CeguiogreRenderer and some

Postby Jamarr » Mon Sep 26, 2011 18:23

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.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 10 guests