Converted FrameStamp::g/setFrameNumber from int to uint

This commit is contained in:
Robert Osfield
2010-12-22 20:11:05 +00:00
parent b5d4d9954a
commit 410b4fd109
49 changed files with 201 additions and 209 deletions

View File

@@ -172,7 +172,7 @@ namespace osgParticle
//added- 1/17/06- bgandere@nps.edu
//a var to keep from doing multiple updates
int _frameNumber;
unsigned int _frameNumber;
};
// INLINE FUNCTIONS

View File

@@ -176,7 +176,7 @@ namespace osgParticle
inline virtual void reuseParticle(int i) { _deadparts.push(&(_particles[i])); }
/// Get the last frame number.
inline int getLastFrameNumber() const;
inline unsigned int getLastFrameNumber() const;
/// Get the unique delta time for emitters and updaters to use
inline double& getDeltaTime( double currentTime );
@@ -294,7 +294,7 @@ namespace osgParticle
bool _bounds_computed;
Particle _def_ptemp;
mutable int _last_frame;
mutable unsigned int _last_frame;
mutable bool _dirty_dt;
bool _freeze_on_cull;
@@ -403,7 +403,7 @@ namespace osgParticle
_particles[i].kill();
}
inline int ParticleSystem::getLastFrameNumber() const
inline unsigned int ParticleSystem::getLastFrameNumber() const
{
return _last_frame;
}

View File

@@ -89,7 +89,7 @@ namespace osgParticle
//added 1/17/06- bgandere@nps.edu
//a var to keep from doing multiple updates per frame
int _frameNumber;
unsigned int _frameNumber;
};
// INLINE FUNCTIONS