Moved osg::Statistics to osgUtil::Statistics and merged addition to it

fro Pavel Moloshtan.
This commit is contained in:
Robert Osfield
2003-07-15 13:46:19 +00:00
parent deb26621c9
commit 1998bdef86
7 changed files with 99 additions and 29 deletions

View File

@@ -12,8 +12,8 @@
*/
#include <osgUtil/RenderBin>
#include <osgUtil/RenderStage>
#include <osgUtil/Statistics>
#include <osg/Statistics>
#include <osg/ImpostorSprite>
#include <osg/Notify>
@@ -334,7 +334,7 @@ void RenderBin::drawImplementation(osg::State& state,RenderLeaf*& previous)
}
// stats
bool RenderBin::getStats(osg::Statistics* primStats)
bool RenderBin::getStats(Statistics* primStats)
{ // different by return type - collects the stats in this renderrBin
bool somestats=false;
@@ -382,7 +382,7 @@ bool RenderBin::getStats(osg::Statistics* primStats)
return somestats;
}
void RenderBin::getPrims(osg::Statistics* primStats)
void RenderBin::getPrims(Statistics* primStats)
{
static int ndepth;
ndepth++;
@@ -398,7 +398,7 @@ void RenderBin::getPrims(osg::Statistics* primStats)
}
bool RenderBin::getPrims(osg::Statistics* primStats, int nbin)
bool RenderBin::getPrims(Statistics* primStats, int nbin)
{ // collect stats for array of bins, maximum nbin
// (which will be modified on next call if array of primStats is too small);
// return 1 for OK;

View File

@@ -12,7 +12,7 @@
*/
#include <stdio.h>
#include <osg/Notify>
#include <osg/Statistics>
#include <osgUtil/Statistics>
#include <osgUtil/RenderStage>