[osg-users] Early events handling

Riccardo Corsi riccardo.corsi at kairos3d.it
Mon Feb 13 07:02:04 PST 2017


Hi all,

what I'm after is very similar to what the osg viewer does when checking if
the QUIT event has happened during the last frame - link
<https://github.com/openscenegraph/OpenSceneGraph/blob/master/src/osgViewer/Viewer.cpp#L1013>
-
with all the events collected in a frame available at the same time.

I'd like to do that before the other callbacks (placed as node callback or
viewer events handler) are invoked, with one event passed at the time.

At the moment, the best workaround that I could come up with is to collect
all the events in a node callback, and use the FRAME event to know that I
have finished the collection for the current frame.

Robert, do you think it's advisable to add a new callback/entry point in
the Viewer and CompositeViewer classed for such usage?

Thank you,
Riccardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170213/5aa3ed5c/attachment-0002.htm>


More information about the osg-users mailing list