Re: [osg-users] rendering to existing gtk window

2009-08-25 Thread Robert Osfield
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 Shahosgfo...@tevs.eu 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
 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


Re: [osg-users] rendering to existing gtk window

2009-08-25 Thread Vinay Shah
Sorry, that was a typo.  The computer my code is on isn't connected to the 
internet so I mistyped it as I rewrote it.  

So yes, I do have what you have written below.  I have taken a look at the 
osgViewerMFC and didn't see anything else that I was missing.  I will look into 
the osgviewerQT example and see if I find anything.  

Thanks

-Vinay

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16708#16708





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