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