Discussion on how to integrate vsg and C# WinForm. #1313
Replies: 2 comments
-
I don't know anything about C# or winform as I'm not a Windows dev, so will have to defer to the Windows users in the community provide specif guidance. As general note, the VSG, a bit like OSG, provides support for passing in the native Window handle via vsg::WindowTraits to the window creation so that the VSG just creates the required Vulkan surface, instance and logical device etc. I expect this will be the most straight forward means of integration. The vsgQt project uses this approach, getting the native window handle from the Qt window and the uses the VSG to create the Vulkan integration. |
Beta Was this translation helpful? Give feedback.
-
You could either set up the |
Beta Was this translation helpful? Give feedback.
-
A long time ago, I wrote a Demo for the integration of OSG and MFC. At that time, the approach was to transmit the handle of the MFC window to OSG, and then open a separate thread in OSG for rendering. Now I plan to try the integration of vsg and C# winform. If I pass the handle of C# window to vsg and then let vsg render in an independent thread alone, I don't know if this method is feasible.
Beta Was this translation helpful? Give feedback.
All reactions