From 64b0e1afd04ad1ed9a2178ae6ee52bcb2954248e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 20 Jun 2013 12:15:57 +0000 Subject: [PATCH] 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." --- include/osgParticle/Particle | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/osgParticle/Particle b/include/osgParticle/Particle index 0464ccf47..ea34ee856 100644 --- a/include/osgParticle/Particle +++ b/include/osgParticle/Particle @@ -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