Advertisement Jump to content
Sign in to follow this  
eslam soka

Directx with vc++ windows form application

This topic is 1828 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

Advertisement

Do you have an existing renderer that you want to add into a WinForms application, or are you starting from scratch?  Also, are you already familiar with WinForms development and DirectX development on their own?  Your answers to these questions will help to inform how you should proceed!

Share this post


Link to post
Share on other sites

thank you for your reply

i want start build my own 3dgraphics software from scratch 

i had build my own 3dgraphics software but for Kitchen

 

 

WaTWb.jpg

Share this post


Link to post
Share on other sites

I would not recommend using WinForms for integration with DirectX. It is possible, but not optimal. You need to supply a WHND from your WinForms application down to the C++ code that you use when you setup your DirectX-devices for rendering. This means that DirectX will "own" the render surface on this HWND and you will not be able to overlay any .NET graphics components (like button or texts etc) on top of your DirectX-drawing. You need to provide all drawing down in the DirectX-code. This might be fine you if you don't want any overlay information handled by the .NET code.

 

What I instead would like to recommend is that you build your .NET-application in WPF instead. WPF has a component named D3DImage that is used for interoperating a DirectX-surface with the WPF rendering pipeline. This is much cleaner and provides no limitations on your GUI layout in the .NET application.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!