Resource Group Names
Posted: Sun Oct 16, 2005 22:10
This may concern only OgreGUIRenderer.
I discovered that the resourceGroup params that are passed in the constructors to classes such as CEGUI::Font and CEGUI::ImageSet etc. are not actually used. This presents a problem when putting CEGUI resources into alternate groups, because if the same groupname is not specified (overridden) in the description file elements, an error occurs trying to find the resource. I have fixed this by storing the resourceGroup in a private d_defaultResourceGroup member (at least in the classes that affected my current project; there may be others) and detecting a zero-length ResourceGroup attribute in the SAX handlers and using the default one instead.
First, is this the proper way to deal with this? (I have no interest in qualifying the XML data with resource group information, as that leads to a maintenance nightmare across projects).
Second, if this is correct, I would be happy to provide a patch for this fix.
I discovered that the resourceGroup params that are passed in the constructors to classes such as CEGUI::Font and CEGUI::ImageSet etc. are not actually used. This presents a problem when putting CEGUI resources into alternate groups, because if the same groupname is not specified (overridden) in the description file elements, an error occurs trying to find the resource. I have fixed this by storing the resourceGroup in a private d_defaultResourceGroup member (at least in the classes that affected my current project; there may be others) and detecting a zero-length ResourceGroup attribute in the SAX handlers and using the default one instead.
First, is this the proper way to deal with this? (I have no interest in qualifying the XML data with resource group information, as that leads to a maintenance nightmare across projects).
Second, if this is correct, I would be happy to provide a patch for this fix.