Ok, I need to explain a little more what I am doing. The Winforms app use DllImport to render a 3D scene (from a C++ lib) in a Winforms Control. My 3D C++ lib is linked to OpenSceneGraph. It seems to be possible for me to get the current graphics context directly in OSG without send a window Handle. Then I guess I have only to find a way to create a graphics context from the Winforms app and then get it from the C++ side ?
I started to watch OpenTK, It could be possible to create simply a graphics context ? Stefanos A. wrote: > > Getting the window handle is not enough to create the OpenGL context on > X11. > How are you creating the context? Is this done on the C++ side or on C#? > If > it's the latter, you could just use an OpenTK.GLControl to create a > context > in your WinForms app and leave everything else the same ( > http://www.opentk.com). If it's the former, you'll have to look up how the > C++ library creates the context and find a way to pass the necessary > information from your app to that (you'll probably need to use reflection > in > order to access the display connection, screen and visual used by Mono > WinForms). > > _______________________________________________ > Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-winforms-list > > -- View this message in context: http://www.nabble.com/Embed-OpenGL-rendering-in-a-winform-app-%28linux%29-tp20831321p20835743.html Sent from the Mono - WinForms mailing list archive at Nabble.com. _______________________________________________ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list