I have written a small set of user ortho 2d interface classes one of which
includes a slider bar control.
I detect the intersection with the slider's geometry to check the mouse has a
hold of it and then update it's position based on the coordinates I get from
the event handlers 'drag' event.
The problem is that when I update the positionattitudetransform of the slider
geometry with the coordinates of the mouse from the event handler i get a crash.
I have a feeling that it is because I am trying to update the position in Drag
event during the event traversal.
Is it it correct to assume that you should only update transformations,
geometry etc when in the update traversal?
If so how can I ensure that these changes are made in the update traversal and
not in the event loop?
My apologies for this rather vague description, hopefully someone will see what
I'm getting at.
Cheers,
Kim.
*****************************************************************************************
To view the terms under which this email is distributed, please go to
http://www.hull.ac.uk/legal/email_disclaimer.html
*****************************************************************************************
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
*****************************************************************************************
To view the terms under which this email is distributed, please go to
http://www.hull.ac.uk/legal/email_disclaimer.html
*****************************************************************************************
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org