Hi Hartwig,

On 16/07/12 8:04 , Hartwig Wiesmann wrote:
> if I change in the iOS example "viewTest" the flipsideViewController's method 
> updateScene: to
> 
> Code:
> 
> - (void)updateScene: (CADisplayLink *)sender
> {
>   if (_viewer->checkNeedToDoFrame())
>   {
>     NSLog(@"updateScene");
>     _viewer->frame();
>   }
> }
> 
> no user interaction is possible anymore. Remove the method's first line leads 
> to regular scene updates.
> Is this the intended behavior?

I assume by 'no user interaction is possible' you're talking about redraws and 
touch input
handling, not the UI (non-OSG buttons etc) in general?

It probably is intended behaviour, depending on your usage.  As I understand it,
checkNeedToDoFrame() must only be used when running with the on-demand run 
scheme.  In
this case it's your responsibility to set the redraw flag as required by calling
'requestRedraw()' whenever your scene changes (or anything else of interest).

Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to