本文整理汇总了C++中Skin::_notifyOrigin方法的典型用法代码示例。如果您正苦于以下问题:C++ Skin::_notifyOrigin方法的具体用法?C++ Skin::_notifyOrigin怎么用?C++ Skin::_notifyOrigin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Skin
的用法示例。
在下文中一共展示了Skin::_notifyOrigin方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: parseScript
void SkinManager::parseScript(DataStreamPtr& stream, const String& groupName)
{
try
{
String line = "";
Skin *pSkin = 0;
while(!stream->eof())
{
line = stream->getLine();
// Ignore blanks & comments
if (!line.length() || line.substr(0, 2) == "//")
{
continue;
}
if (!pSkin)
{
// No current skin
// So first valid data should be skin name
#ifdef ROR_USE_OGRE_1_9
pSkin = (Skin *)createResource(line, groupName).getPointer();
#else
pSkin = (Skin *)create(line, groupName).getPointer();
#endif
if (pSkin)
{
pSkin->_notifyOrigin(stream->getName());
stream->skipLine("{");
}
} else
{
// Already in skin
if (line == "}")
{
// Finished
//addImpl((Ogre::ResourcePtr)pSkin);
pSkin = 0;
// NB skin isn't loaded until required
} else
{
ParseSkinAttribute(line, pSkin);
}
}
}
} catch(Ogre::ItemIdentityException e)
{
// this catches duplicates -> to be ignored
// this happens since we load the full skin data off the cache, so we don't need
// to re-add it to the SkinManager
return;
}
}