[osg-users] change GraphicsWindowIOS

2012-08-15 Thread 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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] change GraphicsWindowIOS

2012-08-15 Thread Stephan Maximilian Huber
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_castosgViewer::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
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org