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?
creating an Image set object from textures
Moderators: CEGUI MVP, CEGUI Team
- martignasse
- Just can't stay away
- Posts: 227
- Joined: Thu Apr 14, 2005 08:10
- Location: Lyon, FRANCE
Re: creating an Image set object from textures
What are the dimensions of the images you want to show ?All Image files (JPEG) are kept in applcation folder.
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
All images have standard dimensions , 640 * 480. But I should be able to resize them dynamically.
What resourcegroup I need to pass?
What resourcegroup I need to pass?
- lindquist
- CEGUI Team (Retired)
- Posts: 770
- Joined: Mon Jan 24, 2005 21:20
- Location: Copenhagen, Denmark
Re: creating an Image set object from textures
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.
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.
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 7 guests