Moved LessFunctor into header.
This commit is contained in:
parent
10f2feeac5
commit
58e759619c
@ -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; }
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user