I'm trying to set an image to a panel based on a render to texture. So everything is working right except for the fact that I can't create the texture with a name that contains spaces or other special chars. This line is the problem:
Code: Select all
component->setProperty("Image", CEGUI::PropertyHelper::imageToString(&someImageSet->getImage( ("SomeImageset_"+std::string(someName)).c_str() )));
the variable "someName" has spaces, and for that it's being truncated. Is there any way to solve this without replacing the all spaces with any other character?