Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Render environment in DirectX

Tags:

c#

directx

I want to program for DirectX in C# and i have DirectX SDK, what kind of project should be choose ? Windows form or ....

like image 245
Hesam Qodsi Avatar asked Aug 24 '26 11:08

Hesam Qodsi


2 Answers

You should ask yourself first: What's the purpose of my project?

If you intend to building applications with beautiful 2D-3D visuals, then you just need to learn WPF.

On the other hand, if you wanna build games that require a lot of resources, XNA is the way to go.

Building applications on XNA is a lot of pain, since XNA is built for gaming. The same can be said about building games with WPF.

In both cases, you don't need to communicate natively with DirectX (Which could be done via C++). Unless you're building a low level rendering engine, or a (very) high budget game.

like image 97
SiN Avatar answered Aug 27 '26 03:08

SiN


You should use XNA, that is the replacement for Managed DirectX C#

Microsoft XNA ('XNA's Not Acronymed) is a set of tools with a managed runtime environment provided by Microsoft that facilitates computer game development and management. XNA attempts to free game developers from writing "repetitive boilerplate code" and to bring different aspects of game production into a single system.

From Wikipedia XNA Article.

Unless you want to just render windows but WPF might be the best options. See this blog post.

like image 36
David Basarab Avatar answered Aug 27 '26 02:08

David Basarab



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!