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

使用说明:

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

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

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

下载地址:

http://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

WhyDX9:翻写D3D红龙书中的程序的更多相关文章

  1. DirectX 初始化DirectX(手写和红龙书里面的方式)

    上次介绍了如何初始化Direct3D,这次手写一次初始化代码,都是一样的方式不过看起来整洁一点. 创建一个Win32空项目添加一个空类增加以下代码即可. #include "CreateDe ...

  2. WHY翻写NEHE与红龙的3D图形程序 [开源]

    个人认为学习3D图形程序开发,有两套经典教程.D3D的<D3D游戏开发编程基础>也就是红龙那本书.OpenGL的NEHE教程.为向经典致敬,将我之前翻写他们的程序开源. 我所做的工作是将其 ...

  3. WhyGL:一套学习OpenGL的框架,及翻写Nehe的OpenGL教程

    最近在重学OpenGL,之所以说重学是因为上次接触OpenGL还是在学校里,工作之后就一直在搞D3D,一转眼已经毕业6年了.OpenGL这门手艺早就完全荒废了,现在只能是重学.学习程序最有效的办法是动 ...

  4. 运用《深入理解Java虚拟机》书中知识解决实际问题

    前言 以前看别人博客说看完<深入理解Java虚拟机>这本书并没有让自己的编程水平提高多少,不过却大大提高了自己的装逼水平.其实,我倒不这么认为,至少在我看完一遍这本书后,有一种醍醐灌顶的感 ...

  5. 《Unity3D 实战核心技术详解》书中关于矩阵的错误

    最近一直在学习实时渲染,不免要接触线性代数.而渲染中,一定会用到矩阵,当我再次去复习我之前看的书时,发现<Unity3D 实战核心技术详解>关于矩阵就有几处错误 ,特标注出来. 书的第一章 ...

  6. 数据科学实战手册(R+Python)书中引用资料网址

    本文会持续将<数据科学实战手册(R+Python)>一书中的附带参考资料网址手打出来, 方便访问. 由于书中的参考资料网址太多, 这个文档将可能花费一段时间才能完成. 第一章 P7  Rs ...

  7. 5 TensorFlow实战Google深度学习框架一书中的错误两处(交叉熵定义有误)

    第一处: 书中62页定义的交叉熵函数定义有误,虽然这个所谓交叉熵的数值能够减少,但是是不能提升预测性能的,因为定义就错了. 我已经将预测过程可视化,直接将交叉熵改为我的,或者用原书的,就可以看到预测结 ...

  8. K&R《C语言》书中的一个Bug

    最近在重温K&R的C语言圣经,第二章中的练习题2-2引起了我的注意. 原题是: Write a loop equivalent to the for loop above without us ...

  9. WPF 把图片分割成两份自动翻页 WpfFlipPageControl:CtrlBook 书控件

    原文:WPF 把图片分割成两份自动翻页 WpfFlipPageControl:CtrlBook 书控件 版权声明:本文为博主原创文章,需要转载尽管转载. https://blog.csdn.net/z ...

随机推荐

  1. poj2524 Ubiquitous Religions(并查集)

    题目链接 http://poj.org/problem?id=2524 题意 有n个学生,编号1~n,每个学生最多有1个宗教信仰,输入m组数据,每组数据包含a.b,表示同学a和同学b有相同的信仰,求在 ...

  2. Mongoose关于当天日期的查询

    参考:https://blog.csdn.net/difffate/article/details/70312894 Ant Design Pro中,有关于日期的查询条件,但日期是以数字表示的 Req ...

  3. Cygwin镜像使用

    前言:Cygwin是一个在windows平台上运行的类UNIX模拟环境,可以自己安装想用的插件 Cygwin镜像使用帮助 收录架构 x86 x86_64 收录版本 所有版本 更新时间 每12小时更新一 ...

  4. Ionic实战二:购物车

    用户名密码都为空 此app功能主要有如下 1.首页轮播和商品列表展示 2.左侧侧滑页面分类展示 3.商品详情页面展示 以及购买 4.购物车 订单填写 支付等页面          

  5. redis配置新端口

    为redis分配一个8888端口,操作步骤如下:1.$REDIS_HOME/redis.conf重新复制一份,重命名为redis8888.conf.2.打开redis8888.conf配置文件,找到p ...

  6. Eclipse 更改默认的编码 和 换行符

  7. [luogu4389]付公主的背包(多项式exp)

    完全背包方案计数问题的FFT优化.首先写成生成函数的形式:对重量为V的背包,它的生成函数为$\sum\limits_{i=0}^{+\infty}x^{Vi}=\frac{1}{1-x^{V}}$于是 ...

  8. [Visual Studio] 重置默认设置 还原默认设置

    恢复默认设置的2种方法 如果VS出现问题或设置变乱,可以通过恢复默认设置使之回到安装成功时的状态,从而解决出现的问题.VS恢复默认设置的方法有2种,分别是:通过“导入和导出设置”实现和通过命令实现. ...

  9. private、protected、public

      private protected public 本类内 Y Y Y 子类内 N Y Y 外部 N N N <?php class MyClass{ public $public = 'Pu ...

  10. vue2.0使用记录

    父组件给子组件传值[props] 1.首先在父组件的script标签中引入子组件 import Children from './Children' 2.在template内引入子组件 <Chi ...