Ernest, Here's a code snippet. This is C++/CLI but you will get the idea. Grab the Handle property from your .NET control and pass it to the Traits of your new graphics context:
http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2007-November/004540.html HTH -gw On Tue, May 6, 2008 at 9:52 PM, Ernest Abbott <[EMAIL PROTECTED]> wrote: > I'm very very new to OSG. I'm writing in C# and have a limited > understanding of C++. I am, as vehicle of learning OSG, converting a sample > OSG C++ program to C#. I want to be able to display my rendered image in an > area within my windows Form. I realise that I need to get the handle for the > render object, which is easily done. But I can't see where/how I can let OSG > know what this handle is. ie How can I pass the handle to OSG so that it > renders within my window control? > > A bit of sample code would be of a great help. > > regards > > Ernest Abbott > > ------------------------------ > Messenger's gone Mobile! Get it > now!<http://clk.atdmt.com/UKM/go/msnnkmgl0010000001ukm/direct/01/> > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : 703-652-4791
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org