From Paul Martz, "I've added support for indexed light points and the light

point appearance palette to the OpenFlight loader. Both are 15.8 features.
I also added parsing/comments regarding other things that have changed for
v15.8."
This commit is contained in:
Robert Osfield
2004-03-14 15:26:36 +00:00
parent 28759baa98
commit 3bf1bbdabd
22 changed files with 482 additions and 18 deletions

View File

@@ -285,3 +285,25 @@ void InstancePool::addInstance(int nIndex, osg::Group* instance)
_instanceMap[nIndex] = instance;
}
LtPtAppearancePool::PoolLtPtAppearance* LtPtAppearancePool::get(int nIndex)
{
if (nIndex < 0)
return NULL;
AppearanceMap::iterator fitr = _appearanceMap.find(nIndex);
if (fitr != _appearanceMap.end())
return (*fitr).second.get();
return NULL;
}
void LtPtAppearancePool::add(int nIndex, PoolLtPtAppearance* appearance)
{
_appearanceMap[nIndex] = appearance;
}