码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2014-05-07 16:42:03      阅读:447      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   class   ext   color   

 

之前写过一套学习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

 

bubuko.com,布布扣

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

bubuko.com,布布扣
CRedDragon02 = Draw Rotating Cube And Grid

bubuko.com,布布扣
CRedDragon03 = Draw 5 ID3DXMesh

bubuko.com,布布扣
CRedDragon04 = Draw Rotating Teapot

bubuko.com,布布扣
CRedDragon05 = Draw One Triangle

bubuko.com,布布扣
CRedDragon06 = Draw Two Color Triangles

bubuko.com,布布扣
CRedDragon07 = Directional Light

bubuko.com,布布扣
CRedDragon08 = Light Pyramid

bubuko.com,布布扣
CRedDragon09 = Spot Light

bubuko.com,布布扣
CRedDragon10 = Point Light

bubuko.com,布布扣
CRedDragon11 = Texture Address Modes

bubuko.com,布布扣
CRedDragon12 = Texture Cube

bubuko.com,布布扣
CRedDragon13 = Texture Quad

bubuko.com,布布扣
CRedDragon14 = Texture Alpha

bubuko.com,布布扣
CRedDragon15 = Material Alpha

bubuko.com,布布扣
CRedDragon16 = Demonstrates mirrors with stencils

bubuko.com,布布扣
CRedDragon17 = Demonstrates shadows with stencils

bubuko.com,布布扣
CRedDragon18 = Demonstrates mirrors and shadows with stencils

bubuko.com,布布扣
CRedDragon19 = Render text with the ID3DXFont interface

bubuko.com,布布扣
CRedDragon20 = Render text with the CD3DFont class

bubuko.com,布布扣
CRedDragon21 = Create and render 3D Text using D3DXCreateText

bubuko.com,布布扣
CRedDragon22 = Create an empty ID3DXMesh object with D3DXCreateMeshFVF and fill it

bubuko.com,布布扣
CRedDragon23 = Demonstrates how to load and render an XFile

bubuko.com,布布扣
CRedDragon24 = Demonstrates how to use the progressive mesh interface (ID3DXPMesh)

bubuko.com,布布扣
CRedDragon25 = Demonstrates how to use D3DXComputeBoundingSphere and D3DXComputeBoundingBox

bubuko.com,布布扣
CRedDragon26 = Demonstrates using the Camera class

bubuko.com,布布扣
CRedDragon27 = Renders a terrain and allows you to walk around it

bubuko.com,布布扣
CRedDragon28 = Demonstrates the PSystem::Snow system

bubuko.com,布布扣
CRedDragon29 = Demonstrates the PSystem::Firework system

bubuko.com,布布扣
CRedDragon30 = Demonstrates the PSystem::ParticleGun system

bubuko.com,布布扣
CRedDragon31 = Demonstrates picking

bubuko.com,布布扣
CRedDragon32 = Transforming by the view project matrices and setting the vertex color using a vertex shader

bubuko.com,布布扣
CRedDragon33 = Demonstrates diffuse lighting using a vertex shader

bubuko.com,布布扣
CRedDragon34 = Demonstrates toon rendering using a vertex shader

bubuko.com,布布扣
CRedDragon35 = Demonstrates toon rendering with silhouette edges outlined using a vertex shader

bubuko.com,布布扣
CRedDragon36 = Demonstrates multi-texturing using a pixel shader

bubuko.com,布布扣
CRedDragon37 = Demonstrates using an effect file to light and texture a 3D model

bubuko.com,布布扣
CRedDragon38 = Demonstrates fog using an effect file

bubuko.com,布布扣
CRedDragon39 = Demonstrates toon rendering using a vertex shader in an effect file

 bubuko.com,布布扣

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

bubuko.com,布布扣
CFlying01 = Test YicPrimitive2DRender and draw some 2D graph

 bubuko.com,布布扣

WhyDX9:翻写D3D红龙书中的程序,布布扣,bubuko.com

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

标签:des   style   blog   class   ext   color   

原文地址:http://www.cnblogs.com/WhyEngine/p/3713464.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!