[osg-users] Displaying stats

Robert Osfield robert.osfield at gmail.com
Thu Sep 20 06:15:04 PDT 2007


On 9/20/07, Marcus Fritzen <mfritzen at uni-koblenz.de> wrote:
> Okay, i have found something what I was looking for. For those who do
> not know how to add it...
>
> #include <osgViewer/ViewerEventHandlers>
> ...
> viewer.addEventHandler( new osgViewer::StatsHandler() );
>
> That is all, but another question. Is there also a possibility to count
> the triangles in the scene?

StatsHandler doesn't compute the vertex/polygon counts right now.

Robert.



More information about the osg-users mailing list