Re: [osg-users] How to get the Handle for C# displays

2008-05-07 Thread Glenn Waldron
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

Re: [osg-users] How to get the Handle for C# displays

2008-05-07 Thread Ernest Abbott
Hi Glen, Thanks for the link. I'd looked at the code before. But there doesn't seem to be an equivalent in C# for the following (left hand side). traits-inheritedWindowData = new osgViewer::GraphicsWindowWin32::WindowData( hwnd ); Yes, I can get the handle. But traits does not have

Re: [osg-users] How to get the Handle for C# displays

2008-05-07 Thread Glenn Waldron
Ernest, Are you using osgDotNet wrappers? what version of OSG? what's the error you get when trying to compile traits.inheritedWindowData = ... ? thanks -gw On Wed, May 7, 2008 at 9:52 PM, Ernest Abbott [EMAIL PROTECTED] wrote: Hi Glen, Thanks for the link. I'd looked at the code before.

Re: [osg-users] How to get the Handle for C# displays

2008-05-07 Thread Ernest Abbott
Hi Glen, I'm using the Osg.Net libraries (Osg.Net, Osg.DB ... Osg.Viewer) I'm using OSG version 2.0.0 v7 2007-06-19. I had tried the most recent version of OSG, but after a while discovered it didn't work with the C# wrappers I was using. The error message is Osg.GraphicsContext.Traits does

Re: [osg-users] How to get the Handle for C# displays

2008-05-07 Thread Ernest Abbott
Hi Glen, I'm using the Osg.Net libraries (Osg.Net, Osg.DB ... Osg.Viewer) I'm using OSG version 2.0.0 v7 2007-06-19. I had tried the most recent version of OSG, but after a while discovered it didn't work with the C# wrappers I was using. The error message is Osg.GraphicsContext.Traits does

[osg-users] How to get the Handle for C# displays

2008-05-06 Thread Ernest Abbott
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

Re: [osg-users] How to get the Handle for C# displays

2008-05-06 Thread Gordon Tomlinson
HI Have a look at the examples \OpenSceneGraph\Src\Examples osgviewerQT, MFC SDL, FLTK etc they all show how to use a different window container etc.. __ Gordon Tomlinson Email : mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [osg-users] How to get the Handle for C# displays

2008-05-06 Thread hesicong2006
Please see a C++/CLI demo here: http://www.openscenegraph.org/projects/osg/wiki/Community/WindowingToolkits Gordon Tomlinson wrote: HI Have a look at the examples \OpenSceneGraph\Src\Examples osgviewerQT, MFC SDL, FLTK etc they all show how to use a different window