随笔 - 373  文章 - 1  评论 - 771  阅读 - 137万

WhyDX9:翻写D3D红龙书中的程序

 

之前写过一套学习OpenGL的框架:WhyGL,即然有了GL那也应该再写个学习D3D的框架:WhyDX9.两个程序的架构相同,然后这个程序是将D3D红龙那本书的DEMO翻写了一遍.先将可执行程序发一下,代码等整理后再发.

使用说明:

WhyDX9演示程序平台.exe
WhyDX9.exe
都可以运行程序,不同之处在于,一个是基本的Windows窗体程序,一个是MFC的单文档界面程序.

主UI界面上,鼠标点击可以选择要运行的DEMO
键盘的上下键也可以选择DEMO,PageUp和PageDown用于翻页,回车键用于启动选中的DEMO

F11键用于全屏切换,
ESC用于退出当前DEMO及退出全屏
每个DEMO都会将提示文字信息显示在界面上,H键可以隐藏文字.

下载地址:

https://files.cnblogs.com/WhyEngine/WhyDX9.zip

 

[RedDragon]
CRedDragon01 = Press any key to change background color


CRedDragon02 = Draw Rotating Cube And Grid


CRedDragon03 = Draw 5 ID3DXMesh


CRedDragon04 = Draw Rotating Teapot


CRedDragon05 = Draw One Triangle


CRedDragon06 = Draw Two Color Triangles


CRedDragon07 = Directional Light


CRedDragon08 = Light Pyramid


CRedDragon09 = Spot Light


CRedDragon10 = Point Light


CRedDragon11 = Texture Address Modes


CRedDragon12 = Texture Cube


CRedDragon13 = Texture Quad


CRedDragon14 = Texture Alpha


CRedDragon15 = Material Alpha


CRedDragon16 = Demonstrates mirrors with stencils


CRedDragon17 = Demonstrates shadows with stencils


CRedDragon18 = Demonstrates mirrors and shadows with stencils


CRedDragon19 = Render text with the ID3DXFont interface


CRedDragon20 = Render text with the CD3DFont class


CRedDragon21 = Create and render 3D Text using D3DXCreateText


CRedDragon22 = Create an empty ID3DXMesh object with D3DXCreateMeshFVF and fill it


CRedDragon23 = Demonstrates how to load and render an XFile


CRedDragon24 = Demonstrates how to use the progressive mesh interface (ID3DXPMesh)


CRedDragon25 = Demonstrates how to use D3DXComputeBoundingSphere and D3DXComputeBoundingBox


CRedDragon26 = Demonstrates using the Camera class


CRedDragon27 = Renders a terrain and allows you to walk around it


CRedDragon28 = Demonstrates the PSystem::Snow system


CRedDragon29 = Demonstrates the PSystem::Firework system


CRedDragon30 = Demonstrates the PSystem::ParticleGun system


CRedDragon31 = Demonstrates picking


CRedDragon32 = Transforming by the view project matrices and setting the vertex color using a vertex shader


CRedDragon33 = Demonstrates diffuse lighting using a vertex shader


CRedDragon34 = Demonstrates toon rendering using a vertex shader


CRedDragon35 = Demonstrates toon rendering with silhouette edges outlined using a vertex shader


CRedDragon36 = Demonstrates multi-texturing using a pixel shader


CRedDragon37 = Demonstrates using an effect file to light and texture a 3D model


CRedDragon38 = Demonstrates fog using an effect file


CRedDragon39 = Demonstrates toon rendering using a vertex shader in an effect file

 

[Flying]
CFlyingHelper = Flying Helper: Tell you how to create a demo


CFlying01 = Test YicPrimitive2DRender and draw some 2D graph

 

posted on   叶飞影  阅读(1748)  评论(2编辑  收藏  举报
编辑推荐:
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· DeepSeek如何颠覆传统软件测试?测试工程师会被淘汰吗?
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示