37SWidgetFactory::SWidgetFactory()
42SWidgetFactory::SWidgetFactory(
const std::string& widgetType)
47 #if OGRE_VERSION >= ((1 << 16) | (7 << 8) | 0)
48 Ogre::ResourceGroupManager::getSingleton().createResourceGroup(std::string(SO3_INTERNAL_RESOURCE_GROUP)+
"/Widgets/"+type,
true);
55 #if OGRE_VERSION >= ((1 << 16) | (7 << 8) | 0)
56 Ogre::ResourceGroupManager::getSingleton().destroyResourceGroup(std::string(SO3_INTERNAL_RESOURCE_GROUP)+
"/Widgets/"+type);
67 return CreateWidgetImpl(targetScene, widgetName, xPos, yPos, width, height, targetViewport, widgetZOrder);
72 return CreateWidgetImpl(targetScene, widgetName, xPos, yPos, width, height, targetViewport);
75SWidget*
SWidgetFactory::CreateWidget(
SScene* targetScene,
const std::string& widgetName,
const unsigned short& width,
const unsigned short& height,
SMaterial* targetMaterial,
const unsigned short& targetTechnique,
const unsigned short& targetPass,
const unsigned short& targetTextureUnit)
77 return CreateWidgetImpl(targetScene, widgetName, width, height, targetMaterial, targetTechnique, targetPass, targetTextureUnit);
82 assert(existingWidget->
GetType() == type);