Hi Chris,
the calls you're looking for:

#include <osgViewer/ViewerEventHandlers>
    // add the stats handler
    viewer.addEventHandler(new osgViewer::StatsHandler);

This comes form the osgviewer source (applications/osgviewer/osgviewer.cpp)

Laurens.

On Wed, Apr 25, 2018 at 3:53 PM, Chris Baker <[email protected]> wrote:

> Hi,
>
> I remember there being a simple call to enable the 's' key to display
> on-screen stats in OSG, but for the life of me, I can't remember how to
> enable that. I thought it was a trivial call on the viewer, something like
> `enableStats`, which resulted in the 's' key displaying some useful
> statistics about the scene rendering.
>
> Thanks in advance for the help in locating that useful feature!
>
> Cheers,
> Chris
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=73506#73506
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to