Help with Iter
Posted: Thu Feb 11, 2021 22:08
Hi Guys,
i'm sure ive overlooked something but i'm not sure what![Sad :(](./images/smilies/icon_sad.gif)
previously i would
to scan though an image set etc,etc
now imageset has been removed so tried
but getiterator is not part of the image class
so what would be the way to go here ?
i'm sure ive overlooked something but i'm not sure what
![Sad :(](./images/smilies/icon_sad.gif)
previously i would
Code: Select all
// get ptr to named imageset - don't forget this throws if imageset is not present
CEGUI::Imageset& imageset = CEGUI::ImagesetManager::getSingleton().get( "pics" );
ItemListbox* Pics_names = static_cast<ItemListbox*>(winMgr.getWindow( "Pics_names"));
Editbox* pics_txt = static_cast<Editbox*>(winMgr.getWindow( "pics_txt"));
imageset.getName();
// get iterator to iterate over defined images.
Imageset::ImageIterator iter = imageset.getIterator();
while ( !iter.isAtEnd() )
{
to scan though an image set etc,etc
now imageset has been removed so tried
Code: Select all
CEGUI::Image& imageset = CEGUI::ImageManager::getSingleton().get("pics");
imageset.getName();
// get iterator to iterate over defined images.
ImageManager::ImageIterator iter = imageset.getIterator();
but getiterator is not part of the image class
so what would be the way to go here ?