博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
WhyDX9:翻写D3D红龙书中的程序
阅读量:6264 次
发布时间:2019-06-22

本文共 2577 字,大约阅读时间需要 8 分钟。

 

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

使用说明:

WhyDX9演示程序平台.exe

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

主UI界面上,鼠标点击可以选择要运行的DEMO

键盘的上下键也可以选择DEMO,PageUp和PageDown用于翻页,回车键用于启动选中的DEMO

F11键用于全屏切换,

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

下载地址:

 

[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

 

转载地址:http://lrbpa.baihongyu.com/

你可能感兴趣的文章
javax.websocket.Session的一个close异常记录
查看>>
I2C 12864OLED的工作机制
查看>>
在Unity场景中更改天空盒的步骤
查看>>
hibernate联合主键注解方式
查看>>
JNotify的监测文件变化的简单测试例子
查看>>
ALINX公众号
查看>>
Oracle 分区表的新增、修改、删除、合并。普通表转分区表方法
查看>>
RedisHelper帮助类
查看>>
js进阶 10-1 JQuery是什么
查看>>
Hadoop生态圈-Flume的组件之自定义拦截器(interceptor)
查看>>
orcale查询表之间的关联关系
查看>>
关于pythoh面向过程开发人员三步转面向对象的补充,再加一步,四步走战略。转面向对象也可以有固定公式。...
查看>>
SVN设置必须锁定
查看>>
(Apache)ab 压力测试 简单使用
查看>>
程序包com.sun.image.codec.jpeg不存在解决方法
查看>>
Linux也有后悔药,五种方案快速恢复你的系统
查看>>
OpenLDAP在win2008上安装配置
查看>>
根据id查询所有子节点/父节点,mysql 以及ssm前后台处理流程
查看>>
如何提交内核补丁--checkpatch.pl使用【转】
查看>>
MFC程序显示控制台输出
查看>>