用C#进行DirectX开发

DirectX 9.0 的Manage DirectX部分包括下列九个程序集。 Microsoft.DirectX.AudioVideoPlayback.dll Microsoft.DirectX.Diagnostics.dll Microsoft.DirectX.Direct3D.dll Microsoft.DirectX.Direct3DX.dll Microsoft.DirectX.DirectDraw.dll Microsoft.DirectX.DirectInput.dll Microsoft.DirectX.DirectPlay.dll Microsoft.DirectX.DirectSound.dll Microsoft.DirectX.dll 其实有这几个程序集就能用C#来开发DirectX应用了,就是说只要安装了普通的DirectX 9运行库(DirectX 9.0 End-User Runtime)就行了。 微软推荐安装DirectX 9.0 Developer Runtime,其实也是那几个程序集,不过多了调试的信息。 Directx9.0 sdk for C# 并不包括任何一个版本的Runtime,也就是说没有9个程序集。它只包括例子和文档。 所以有两个办法可以解决。 1。到微软下DirectX 9.0 Developer Runtime装,好像有100多兆。 2。安装普通的DirectX 9.0 Runtime,然后从全局程序集缓存中(C:WindowsAssemblyGAC)把9个DLL考出来,可以考到C:WINDOWS

Microsoft.NETManaged DirectXv4.09.00.0900中,这是SDK建立的目录。 另:Directx9.0 sdk for C#是为VS.NET 2002 设计的,按完会多一个项目模板,在MSDN中也会增加一个目录。但是安到2003中两个都不出现,微软

又为2003的文档出了一个补丁,内容都是一样的大概叫DirectX 9.0b Documentation for .NET Framework 1.1 and Visual Studio .NET 2003。项

目模板可以手动改改也能用。

C# and directx的一些资料,最基本的还是微软网站的msdn. http://msdn.microsoft.com/library/default.asp?url=/nhp/Default.asp?contentid=28000410 http://www.kuhnstall.de/tutorials/dx9sharp1.html http://www.gotdotnet.com/team/directx/ http://www.drunkenhyena.com/docs/d3d_tutorial.phtml

相关的directx9.0b sdk 在这里下载: http://www.microsoft.com/downloads/details.aspx?FamilyId=61CDD2D4-C67E-4BDF-8BDE-99709B090ED6&displaylang=en DirectX 9.0b SDK Extras: Documentation for .NET Framework 1.1 and Visual Studio .NET 2003 This download contains a setup that will correctly install the DirectX 9.0b documentation for use with the .NET Framework 1.1 and

Visual Studio .NET 2003.

And In Codeproject:

http://www.codeproject.com/cs/media/

原文地址:https://www.cnblogs.com/gc2013/p/4365583.html