来自 codesampler 的 Direct3D (DirectX 9.0) 代码示例
Direct3D (DirectX 9.0) Code Samples from codesampler
我想从 codesampler 学习 Direct3D。
但是这个网站最近打不开
有谁知道如何从这个网站下载示例代码,先谢谢了。
看起来 www.codesampler.com
已经丢失了他们的域注册,并且 Internet Archive Wayback Machine 自 2016 年底以来就没有找到该网站。它可能刚刚消失了。
如果你今天想学习 Direct3D,你应该关注 Direct3D 11。它支持 Windows 7、Windows Vista SP2、Windows [ 上的 Win32 经典桌面应用程序=43=] 和 Windows 10。Xbox One 和通用 Windows 平台应用程序也支持它。 Visual Studio 的现代版本完全支持 Direct3D 11 开发,您需要的所有头文件和 HLSL 编译器都是 Windows 8.x SDK 和 Windows 10 SDK 的一部分--您根本不需要使用旧版 DirectX SDK。您还可以找到 Direct3D 11 支持替换所有已弃用的 D3DX 库功能。
Where is the DirectX SDK (2015 Edition)?
网上确实有很多学习 Direct3D 11 的资源。请记住,许多 Direct3D 11 学习资源是在弃用旧版 DirectX SDK 之前编写的,因此它们倾向于关注已弃用的支持代码,例如 D3DX11
。我建议从 DirectX Tool Kit for DirectX 11 教程开始,完成这些教程后,您可以返回到 rastertek.com 教程等资源,了解哪些已弃用,哪些未弃用。
Getting Started with Direct3D 11
Direct3D 12 is also supported on Windows 10, Xbox One, and for the Universal Windows Platform, but it's an expert API that assumes you are already an expert on Direct3D 11. See Getting Started with Direct3D 12 and DirectX Tool Kit for DirectX 12.
Direct3D 10.x is fully replaced by Direct3D 11. There's no need to use Direct3D 10.x at all on any platform. Direct3D 11 supports all the Direct3D 10.x era hardware and more through the Direct3D hardware Feature Level mechanism, and is available on all supported versions of Windows that had Direct3D 10.x.
Direct3D 9 is a legacy API, and while its still supported for application compatibility purposes, a lot of the behavior is emulated on modern versions of the OS. Debugging and development support for Direct3D 9 on modern versions of Windows is minimal. Furthermore, the only place to get samples and utility libraries for Direct3D 9 is the legacy DirectX SDK. The only case where it makes sense to use Direct3D 9 for an application is if you have to target Windows XP Service Pack 3 or Windows Server 2003 Service Pack 2. See this post for some important information on this scenario.
您可以在 wayback machine 找到网页和代码示例数据:
https://web.archive.org/web/20161003152649/http://www.codesampler.com/dx9src.htm
我想从 codesampler 学习 Direct3D。
但是这个网站最近打不开
有谁知道如何从这个网站下载示例代码,先谢谢了。
看起来 www.codesampler.com
已经丢失了他们的域注册,并且 Internet Archive Wayback Machine 自 2016 年底以来就没有找到该网站。它可能刚刚消失了。
如果你今天想学习 Direct3D,你应该关注 Direct3D 11。它支持 Windows 7、Windows Vista SP2、Windows [ 上的 Win32 经典桌面应用程序=43=] 和 Windows 10。Xbox One 和通用 Windows 平台应用程序也支持它。 Visual Studio 的现代版本完全支持 Direct3D 11 开发,您需要的所有头文件和 HLSL 编译器都是 Windows 8.x SDK 和 Windows 10 SDK 的一部分--您根本不需要使用旧版 DirectX SDK。您还可以找到 Direct3D 11 支持替换所有已弃用的 D3DX 库功能。
Where is the DirectX SDK (2015 Edition)?
网上确实有很多学习 Direct3D 11 的资源。请记住,许多 Direct3D 11 学习资源是在弃用旧版 DirectX SDK 之前编写的,因此它们倾向于关注已弃用的支持代码,例如 D3DX11
。我建议从 DirectX Tool Kit for DirectX 11 教程开始,完成这些教程后,您可以返回到 rastertek.com 教程等资源,了解哪些已弃用,哪些未弃用。
Getting Started with Direct3D 11
Direct3D 12 is also supported on Windows 10, Xbox One, and for the Universal Windows Platform, but it's an expert API that assumes you are already an expert on Direct3D 11. See Getting Started with Direct3D 12 and DirectX Tool Kit for DirectX 12.
Direct3D 10.x is fully replaced by Direct3D 11. There's no need to use Direct3D 10.x at all on any platform. Direct3D 11 supports all the Direct3D 10.x era hardware and more through the Direct3D hardware Feature Level mechanism, and is available on all supported versions of Windows that had Direct3D 10.x.
Direct3D 9 is a legacy API, and while its still supported for application compatibility purposes, a lot of the behavior is emulated on modern versions of the OS. Debugging and development support for Direct3D 9 on modern versions of Windows is minimal. Furthermore, the only place to get samples and utility libraries for Direct3D 9 is the legacy DirectX SDK. The only case where it makes sense to use Direct3D 9 for an application is if you have to target Windows XP Service Pack 3 or Windows Server 2003 Service Pack 2. See this post for some important information on this scenario.
您可以在 wayback machine 找到网页和代码示例数据:
https://web.archive.org/web/20161003152649/http://www.codesampler.com/dx9src.htm