Code: Select all
Imageset* pImageSet = ImagesetManager::getSingleton().createImageset( strYourImageSetName, pYourTexture );
2. Define an image in your image set like so:
Code: Select all
pImageSet->defineImage( strNameOfNewImage, Point( 0.0f, 0.0f ), Size( usWidth, usHeight ), Point( 0.0f,0.0f ) );
3. Create an image of type StaticImage:
Code: Select all
CEGUI::StaticImage* pNewImage = ( CEGUI::StaticImage* )WindowManager::getSingleton().createWindow( "TaharezLook/StaticImage", strWindowName );
4. Set the image in the StaticImage to your newly created image from your image set:
Code: Select all
pNewImage->setImage( strYourImageSetName, strNameOfNewImage );
Hope this helps!
Cheers,
Chris