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键可以隐藏文字.
下载地址:
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红龙书中的程序的更多相关文章
- DirectX 初始化DirectX(手写和红龙书里面的方式)
上次介绍了如何初始化Direct3D,这次手写一次初始化代码,都是一样的方式不过看起来整洁一点. 创建一个Win32空项目添加一个空类增加以下代码即可. #include "CreateDe ...
- WHY翻写NEHE与红龙的3D图形程序 [开源]
个人认为学习3D图形程序开发,有两套经典教程.D3D的<D3D游戏开发编程基础>也就是红龙那本书.OpenGL的NEHE教程.为向经典致敬,将我之前翻写他们的程序开源. 我所做的工作是将其 ...
- WhyGL:一套学习OpenGL的框架,及翻写Nehe的OpenGL教程
最近在重学OpenGL,之所以说重学是因为上次接触OpenGL还是在学校里,工作之后就一直在搞D3D,一转眼已经毕业6年了.OpenGL这门手艺早就完全荒废了,现在只能是重学.学习程序最有效的办法是动 ...
- 运用《深入理解Java虚拟机》书中知识解决实际问题
前言 以前看别人博客说看完<深入理解Java虚拟机>这本书并没有让自己的编程水平提高多少,不过却大大提高了自己的装逼水平.其实,我倒不这么认为,至少在我看完一遍这本书后,有一种醍醐灌顶的感 ...
- 《Unity3D 实战核心技术详解》书中关于矩阵的错误
最近一直在学习实时渲染,不免要接触线性代数.而渲染中,一定会用到矩阵,当我再次去复习我之前看的书时,发现<Unity3D 实战核心技术详解>关于矩阵就有几处错误 ,特标注出来. 书的第一章 ...
- 数据科学实战手册(R+Python)书中引用资料网址
本文会持续将<数据科学实战手册(R+Python)>一书中的附带参考资料网址手打出来, 方便访问. 由于书中的参考资料网址太多, 这个文档将可能花费一段时间才能完成. 第一章 P7 Rs ...
- 5 TensorFlow实战Google深度学习框架一书中的错误两处(交叉熵定义有误)
第一处: 书中62页定义的交叉熵函数定义有误,虽然这个所谓交叉熵的数值能够减少,但是是不能提升预测性能的,因为定义就错了. 我已经将预测过程可视化,直接将交叉熵改为我的,或者用原书的,就可以看到预测结 ...
- K&R《C语言》书中的一个Bug
最近在重温K&R的C语言圣经,第二章中的练习题2-2引起了我的注意. 原题是: Write a loop equivalent to the for loop above without us ...
- WPF 把图片分割成两份自动翻页 WpfFlipPageControl:CtrlBook 书控件
原文:WPF 把图片分割成两份自动翻页 WpfFlipPageControl:CtrlBook 书控件 版权声明:本文为博主原创文章,需要转载尽管转载. https://blog.csdn.net/z ...
随机推荐
- CSU - 2062 Z‘s Array
Description Z likes to play with array. One day his teacher gave him an array of n elements, and ask ...
- elasticsearch-.yml(中文配置详解)
此elasticsearch-.yml配置文件,是在$ES_HOME/config/下 elasticsearch-.yml(中文配置详解) # ======================== El ...
- 【BZOJ 2721】 2721: [Violet 5]樱花 (筛)
2721: [Violet 5]樱花 Time Limit: 5 Sec Memory Limit: 128 MBSubmit: 599 Solved: 354 Description Input ...
- WEB架构师成长之路 三
Web架构师究竟都要学些什么?具备哪些能力呢?先网上查查架构师的大概的定义,参见架构师修炼之道这篇文章,写的还不错,再查查公司招聘Web架构师的要求. 总结起来大概有下面几点技能要求: 一. 架构师有 ...
- 20162303 解读同伴的收获&解决同伴的问题 周三补交
解读同伴的收获&解决同伴的问题 11月29号 解决同伴的问题 我的同组同学是20162307学号张韵琪同学 同组同学的问题是动态规划算法步骤中递归定义的最优值 我理解他的意思是她不太理解最优值 ...
- 20162327WJH实验五——数据结构综合应用
20162327WJH实验五--数据结构综合应用 实 验 报 告 课程:程序设计与数据结构 班级: 1623 姓名: 王旌含 学号:20162327 成绩: 指导教师:娄嘉鹏 王志强 实验密级: 非密 ...
- java集合之二(collection架构)
转载请注明出处:http://www.cnblogs.com/skywang12345/p/3308513.html 首先,我们对Collection进行说明.下面先看看Collection的一些框架 ...
- Codeforces Round #361 (Div. 2) C. Mike and Chocolate Thieves 二分
C. Mike and Chocolate Thieves 题目连接: http://www.codeforces.com/contest/689/problem/C Description Bad ...
- Codeforces Round #359 (Div. 2) A. Free Ice Cream 水题
A. Free Ice Cream 题目连接: http://www.codeforces.com/contest/686/problem/A Description After their adve ...
- Git_撤销修改
自然,你是不会犯错的.不过现在是凌晨两点,你正在赶一份工作报告,你在readme.txt中添加了一行: $ cat readme.txt Git is a distributed version co ...