Updates from Macro to support the new multitexture API, and improve

bounding box computation.
This commit is contained in:
Robert Osfield
2002-07-10 09:14:46 +00:00
parent f4a167c64c
commit 44d0bb05e7
3 changed files with 22 additions and 14 deletions

View File

@@ -171,6 +171,9 @@ namespace osgParticle
/// Perform some post-rendering tasks. Called automatically by particle systems.
inline void endRender();
/// Get the current (interpolated) polygon size. Valid only after the first call to update().
inline float getCurrentSize() const;
private:
Shape shape_;
@@ -391,6 +394,11 @@ namespace osgParticle
default: ;
}
}
inline float Particle::getCurrentSize() const
{
return current_size_;
}
}