Hi Vinay,

I don't if it's a typo, of the code you are trying to use is exactly
as you've set it, but you inhertiedWindwData is most definately wrong,
it should something like:

traits->inheritedWindowData = new
osgViewer::GraphicsWindowX11::WindowData(m_hWnd);

Note the inclusion of WindowData.  Have a look at osgviewerMFC, and
osgviewerQt examples to see this in action.

Robert.


On Mon, Aug 24, 2009 at 8:03 PM, Vinay Shah<[email protected]> wrote:
> Hello,
>
> I'm trying to port some code which worked in OpenSceneGraph 1.0 and used the 
> old Producer's viewer.
>
> previously i had a statement which said:
>
>
> Code:
> viewer.getCamera(0)->getRenderSurface()->setWindow(gtk_plug_id);
>
>
>
> I tried creating a graphics context and setting the inheritedWindowData 
> traits as:
>
>
> Code:
>
> traits->inheritedWindowData = new osgViewer::GraphicsWindowX11(gtk_pli_id);
>
>
>
>
>
> I noticed that it does black out the appropriate window (so it seems like its 
> doing something right) but then fails to render anything to that area.  Is 
> there another step that I might be missing?
>
> thanks in advance,
>
> -vinay
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=16648#16648
>
>
>
>
>
> _______________________________________________
> 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