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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user