• Advertisement
Sign in to follow this  

Native DirectX and Windows Forms

This topic is 3959 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I currently have native DirectX working with MFC, which is pretty easy to do. However what I would really like to do is use native DirectX with Windows Forms so I get the new look and feel and all the other benefits that come with it. I know I can use Managed DirectX to get it working, but my entire engine is written in native DirectX, which I prefer. So does anyone know if it is possible, for example, to set up a PictureBox in Windows Forms as the render target for a native Direc3D device? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
You could do it if you wrote a C++/CLI wrapper around your engine. Depending on how many top-level interface points your renderer has (initialization, telling what to render, telling it to render), this might be less effort than rewriting your renderer to use MDX. You could also p/invoke your renderer methods.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement