Thanks you Thomas,
I guess your suggestion will help too.

Cheers.
Alessandro

On Wed, Apr 20, 2011 at 9:21 PM, Thomas Hogarth <[email protected]>wrote:

> Hi  Alessandro
>
> I needed to get hold of the UIView created by OSG just the other day,
> although at the mo I do it thought the ui window it creates.
>
>     //get the
>     osgViewer::GraphicsWindowIOS* window =
> dynamic_cast<osgViewer::GraphicsWindowIOS*>(_viewer->GetContext().get());
>     if(window){
>
>         UIView* view = [[window->getWindow() subviews] objectAtIndex:0];
>
>     }
>
> Not sure if you can solve your problem with it but it's a start. Perhaps in
> the future we could change the windowData to except a UIView instead, as
> most of the functionality we use on the window is actually implemented by
> UIView.
>
> Cheers
> Tom
>
> _______________________________________________
> 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