Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Gumtree

Managed DirectX with C++ or C# or ...

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

Hello, I am looking at rewriting my existing C++ application (real time scientific simulation) to use DirectX. Currently it uses a proprietary graphics library which in turn is based on openGL. I have only minimal experience with DirectX and am therefore tempted by the easier to use managed directX. However, all documentation and examples on managed directX deal with C#. I am not too worried about learning a new language but I am worried about all my existing C++ code. Does anyone have any thought on what the best tactics would be ? I can basically see 3 scenarios: 1. managed directX + (managed) C++ 2. managed directX + C# + managed C++ wrapper classes for my current code) 3. normal directX + C++. If anyone has tips on what the best choice would be and how to go about it I would appreciate this a lot. Rog.

Share this post


Link to post
Share on other sites
Advertisement
I''d go with #1 or #2 ... you need to keep your existing code, so "elevate" it to managed status (prob. easiest through managed interfaces) and then write the DX code on top in managed C++ / C#...

However, you say real-time scientific simulation, could knock the real-time out of your title if you do too much heavy conversion

You may well be better off just writing native-C++ DX9. It aint that hard really, the biggest difference I find (with managed DX) is that the naming conventions are a lot simpler and it covers over a few minor technicalities - but nothing HUGELY different.

Jack

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!