Moved LessFunctor into header.

This commit is contained in:
Robert Osfield 2006-04-24 21:48:23 +00:00
parent 10f2feeac5
commit 58e759619c
2 changed files with 10 additions and 8 deletions

View File

@ -43,7 +43,7 @@ namespace osgParticle
/** Set all the parameters to create an rain effect of specified intensity.*/
void rain(float intensity);
/** Set all the parameters to create an rain effect of specified intensity.*/
/** Set all the parameters to create an snow effect of specified intensity.*/
void snow(float intensity);
@ -154,6 +154,15 @@ namespace osgParticle
typedef std::map< Cell, DepthMatrixStartTime > CellMatrixMap;
struct LessFunctor
{
inline bool operator () (const CellMatrixMap::value_type* lhs,const CellMatrixMap::value_type* rhs) const
{
return (*lhs).second<(*rhs).second;
}
};
CellMatrixMap& getCurrentCellMatrixMap() { return _currentCellMatrixMap; }
CellMatrixMap& getPreviousCellMatrixMap() { return _previousCellMatrixMap; }

View File

@ -849,13 +849,6 @@ PrecipitationEffect::PrecipitationDrawable::PrecipitationDrawable(const Precipit
}
struct LessFunctor
{
bool operator () (const PrecipitationEffect::PrecipitationDrawable::CellMatrixMap::value_type* lhs,const PrecipitationEffect::PrecipitationDrawable::CellMatrixMap::value_type* rhs) const
{
return (*lhs).second<(*rhs).second;
}
};
void PrecipitationEffect::PrecipitationDrawable::drawImplementation(osg::State& state) const
{