From Vladimir Chebaev, "I worked with osg::Particle and see that this class has setter osgParticle::setTextureTileRange and has no getters for startTile and endTile. This can be very uncomfortable.

I attached file with two getters."
This commit is contained in:
Robert Osfield
2013-06-20 12:15:57 +00:00
parent eaa3afcd21
commit 64b0e1afd0

View File

@@ -260,6 +260,10 @@ namespace osgParticle
/// Same as above, range starts at 0 and ends at end
inline void setTextureTile(int sTile, int tTile, int end = -1);
inline int getStartTile() const;
inline int getEndTile() const;
/// Set the previous particle
inline void setPreviousParticle(int previous) { _previousParticle = previous; }
@@ -630,6 +634,15 @@ namespace osgParticle
}
}
inline int Particle::getStartTile() const
{
return _start_tile;
}
inline int Particle::getEndTile() const
{
return _end_tile;
}
}
#endif