Updates from Macro to support the new multitexture API, and improve
bounding box computation.
This commit is contained in:
@@ -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_;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user