---------------------------------------------------------------------
| 281 | } |
| 282 | //--------------------------------------------------------------------- |
| 283 | PageContent* PageManager::createContent(const String& typeName) |
| 284 | { |
| 285 | PageContentFactory* fact = getContentFactory(typeName); |
| 286 | if (!fact) |
| 287 | OGRE_EXCEPT(Exception::ERR_ITEM_NOT_FOUND, |
| 288 | typeName + " is not the name of a valid PageContentFactory", |
| 289 | "PageManager::createContent"); |
| 290 | |
| 291 | return fact->createInstance(); |
| 292 | } |
| 293 | //--------------------------------------------------------------------- |
| 294 | void PageManager::destroyContent(PageContent* c) |
| 295 | { |
nothing calls this directly
no test coverage detected