Hi Laith,

Can't you set the opaque-property of the gl-view' layer before realizing
the viewer? (Out of my head:)

osgViewer::GraphicsWindowIOS* win =
dynamic_cast<osgViewer::GraphicsWindowIOS*>(your_context);
if (win) {
        UIView* view = (UIView*)win->getView();
        CALayer* layer = view.layer;
        if (layer) layer.opaque = NO;
}

if this doesn't work I recommend adding a new flag to
osgViewer::GraphicsWindowIOS::WindowData and checking that flag from
inside GraphicsWindowIOS.

For the latter solution you'll have to recompile osg. And please submit
your changes to osg.submission or create a pull request for
https://github.com/stmh/osg/tree/iphone

HTH,
Stephan

Am 15.08.12 12:17, schrieb Laith Dhawahir:

> Hi,
>  is it possible that I change inside without compiling OpenSceneGraph again, 
> actually what am looking for us to make changes inside GraphicsWindowIOS to 
> support transparent background or there is a better way for doing that ?
> 
> Thank you!
> 
> Cheers,
> Laith
> 
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=49266#49266
> 
> 
> 
> 
> 
> _______________________________________________
> 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