Renamed osg::Statistics::addOpaque to addDrawable to better reflect its current

function.
This commit is contained in:
Robert Osfield
2002-08-30 19:45:56 +00:00
parent a68d95d2f6
commit c6965357e6
3 changed files with 6 additions and 6 deletions

View File

@@ -1598,8 +1598,8 @@ int writePrims( const int ypos, osg::Statistics& stats)
if (stats.depth==1) sprintf(intro,"==> Bin %2d", stats._binNo);
else sprintf(intro,"General Stats: ");
sprintf(clin,"%s %d Opaque Drawables %d Lights %d Bins %d Impostors",
intro ,stats.numOpaque, stats.nlights, stats.nbins, stats.nimpostor);
sprintf(clin,"%s %d Drawables %d Lights %d Bins %d Impostors",
intro ,stats.numDrawables, stats.nlights, stats.nbins, stats.nimpostor);
displaytext(0,ypos-npix,clin);
npix+=24;

View File

@@ -269,7 +269,7 @@ bool RenderBin::getStats(osg::Statistics* primStats)
{
RenderLeaf* rl = dw_itr->get();
Drawable* dw= rl->_drawable;
primStats->addOpaque(); // number of geosets
primStats->addDrawable(); // number of geosets
if (rl->_modelview.get()) primStats->addMatrix(); // number of matrices
if (dw)
{