Page 1 of 1

creating an Image set object from textures

Posted: Fri Dec 30, 2005 19:00
by magicman
I am new to CEGUI , developing a simple GUI application for OGRE3D based game. On selection of a text item from listbox I want to display a picture associated with the text item. All Image files (JPEG) are kept in applcation folder.

First I have to create a texture object I use
myTexture=CEGUI::System::getSingleton().getRenderer()->createTexture(

What parameters should I pass to this function? :roll:

Re: creating an Image set object from textures

Posted: Sat Dec 31, 2005 08:17
by martignasse
All Image files (JPEG) are kept in applcation folder.
What are the dimensions of the images you want to show ?
Basiclly, it's better to put them in an imageset (or more than one), like that, you just have to load the imageset.

hope it help

Re: creating an Image set object from textures

Posted: Mon Jan 09, 2006 14:27
by magicman
All images have standard dimensions , 640 * 480. But I should be able to resize them dynamically.

What resourcegroup I need to pass?

Re: creating an Image set object from textures

Posted: Mon Jan 09, 2006 21:22
by lindquist
You probably want to use the function ImagesetManager::createImagesetFromImageFile API ref

It creates a imageset with a single image (seems like what you want.)
The resource group is passed on the the resource provider when loading the image, and is the Ogre resource group you want to load from. Leave it empty if you dont use this.