Пример #1
0
static bool writePlacers( osgDB::OutputStream& os, const osgParticle::CompositePlacer& cp )
{
    unsigned int size = cp.getNumPlacers();
    os << size << osgDB::BEGIN_BRACKET << std::endl;
    for ( unsigned int i=0; i<size; ++i )
    {
        os << cp.getPlacer(i);
    }
    os << osgDB::END_BRACKET << std::endl;
    return true;
}
Пример #2
0
static bool checkPlacers( const osgParticle::CompositePlacer& cp )
{
    return cp.getNumPlacers()>0;
}