Fixed compile problems under VisualStudio6.0
This commit is contained in:
parent
c70f5240eb
commit
dc00711337
@ -6,12 +6,17 @@
|
||||
#ifndef OSGPARTICLE_RANGE_
|
||||
#define OSGPARTICLE_RANGE_ 1
|
||||
|
||||
// include Export simply to disable Visual Studio silly warnings.
|
||||
#include <osgParticle/Export>
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
#include <osg/Vec2>
|
||||
#include <osg/Vec3>
|
||||
#include <osg/Vec4>
|
||||
|
||||
//using std::rand;
|
||||
|
||||
namespace osgParticle
|
||||
{
|
||||
|
||||
@ -43,7 +48,7 @@ namespace osgParticle
|
||||
/// Get a random value between min and max.
|
||||
T_ get_random() const
|
||||
{
|
||||
return min + (max - min) * std::rand() / RAND_MAX;
|
||||
return min + (max - min) * rand() / RAND_MAX;
|
||||
}
|
||||
|
||||
};
|
||||
|
@ -8,6 +8,9 @@
|
||||
|
||||
#include <osgUtil/CullVisitor>
|
||||
|
||||
|
||||
using namespace osg;
|
||||
|
||||
osgParticle::ParticleProcessor::ParticleProcessor()
|
||||
: osg::Node(),
|
||||
rf_(RELATIVE_TO_PARENTS),
|
||||
@ -71,5 +74,5 @@ void osgParticle::ParticleProcessor::traverse(osg::NodeVisitor &nv)
|
||||
}
|
||||
|
||||
// call the inherited method
|
||||
osg::Node::traverse(nv);
|
||||
Node::traverse(nv);
|
||||
}
|
||||
|
@ -3,6 +3,8 @@
|
||||
#include <osg/CopyOp>
|
||||
#include <osg/Node>
|
||||
|
||||
using namespace osg;
|
||||
|
||||
osgParticle::ParticleSystemUpdater::ParticleSystemUpdater()
|
||||
: osg::Node(), t0_(-1)
|
||||
{
|
||||
@ -33,5 +35,5 @@ void osgParticle::ParticleSystemUpdater::traverse(osg::NodeVisitor &nv)
|
||||
}
|
||||
t0_ = t;
|
||||
}
|
||||
osg::Node::traverse(nv);
|
||||
Node::traverse(nv);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user