Introduction - If you have any usage issues, please Google them yourself
翁云soldiers, but most of the contents of which he translated from a book (Introduction to Game Programming with DirectX 9.0), the book
Packet : 39709823dgame_src.rar filelist
Book Code\Chapter 1\D3D9 Init\D3D9 Init.sln
Book Code\Chapter 1\D3D9 Init\D3D9 Init.vcproj
Book Code\Chapter 1\D3D9 Init\d3dInit.cpp
Book Code\Chapter 1\D3D9 Init\d3dUtility.cpp
Book Code\Chapter 1\D3D9 Init\d3dUtility.h
Book Code\Chapter 10\D3DXCreateMeshFVF\brick0.jpg
Book Code\Chapter 10\D3DXCreateMeshFVF\brick1.jpg
Book Code\Chapter 10\D3DXCreateMeshFVF\checker.jpg
Book Code\Chapter 10\D3DXCreateMeshFVF\d3dUtility.cpp
Book Code\Chapter 10\D3DXCreateMeshFVF\d3dUtility.h
Book Code\Chapter 10\D3DXCreateMeshFVF\d3dxcreatemeshfvf.cpp
Book Code\Chapter 10\D3DXCreateMeshFVF\D3DXCreateMeshFVF.sln
Book Code\Chapter 10\D3DXCreateMeshFVF\D3DXCreateMeshFVF.vcproj
Book Code\Chapter 10\D3DXCreateMeshFVF\texture credit.txt
Book Code\Chapter 11\Bounding Volumes\bigship1.x
Book Code\Chapter 11\Bounding Volumes\Bounding Volumes.sln
Book Code\Chapter 11\Bounding Volumes\Bounding Volumes.vcproj
Book Code\Chapter 11\Bounding Volumes\boundingvolumes.cpp
Book Code\Chapter 11\Bounding Volumes\d3dUtility.cpp
Book Code\Chapter 11\Bounding Volumes\d3dUtility.h
Book Code\Chapter 11\Progressive Mesh\bigship1.x
Book Code\Chapter 11\Progressive Mesh\d3dUtility.cpp
Book Code\Chapter 11\Progressive Mesh\d3dUtility.h
Book Code\Chapter 11\Progressive Mesh\pmesh.cpp
Book Code\Chapter 11\Progressive Mesh\Progressive Mesh.sln
Book Code\Chapter 11\Progressive Mesh\Progressive Mesh.vcproj
Book Code\Chapter 11\XFile\bigship1.x
Book Code\Chapter 11\XFile\d3dUtility.cpp
Book Code\Chapter 11\XFile\d3dUtility.h
Book Code\Chapter 11\XFile\xfile.cpp
Book Code\Chapter 11\XFile\XFile.sln
Book Code\Chapter 11\XFile\XFile.vcproj
Book Code\Chapter 12\Camera\camera.cpp
Book Code\Chapter 12\Camera\camera.h
Book Code\Chapter 12\Camera\Camera.sln
Book Code\Chapter 12\Camera\Camera.vcproj
Book Code\Chapter 12\Camera\cameraApp.cpp
Book Code\Chapter 12\Camera\d3dUtility.cpp
Book Code\Chapter 12\Camera\d3dUtility.h
Book Code\Chapter 12\Camera\desert.bmp
Book Code\Chapter 13\Terrain\camera.cpp
Book Code\Chapter 13\Terrain\camera.h
Book Code\Chapter 13\Terrain\coastMountain64.raw
Book Code\Chapter 13\Terrain\d3dfont.cpp
Book Code\Chapter 13\Terrain\d3dfont.h
Book Code\Chapter 13\Terrain\d3dutil.cpp
Book Code\Chapter 13\Terrain\d3dutil.h
Book Code\Chapter 13\Terrain\d3dUtility.cpp
Book Code\Chapter 13\Terrain\d3dUtility.h
Book Code\Chapter 13\Terrain\desert.bmp
Book Code\Chapter 13\Terrain\dxutil.cpp
Book Code\Chapter 13\Terrain\dxutil.h
Book Code\Chapter 13\Terrain\fps.cpp
Book Code\Chapter 13\Terrain\fps.h
Book Code\Chapter 13\Terrain\grass.bmp
Book Code\Chapter 13\Terrain\terrain.cpp
Book Code\Chapter 13\Terrain\terrain.h
Book Code\Chapter 13\Terrain\Terrain.sln
Book Code\Chapter 13\Terrain\Terrain.vcproj
Book Code\Chapter 13\Terrain\terrainDriver.cpp
Book Code\Chapter 14\Firework System\camera.cpp
Book Code\Chapter 14\Firework System\camera.h
Book Code\Chapter 14\Firework System\d3dUtility.cpp
Book Code\Chapter 14\Firework System\d3dUtility.h
Book Code\Chapter 14\Firework System\desert.bmp
Book Code\Chapter 14\Firework System\Firework System.sln
Book Code\Chapter 14\Firework System\Firework System.vcproj
Book Code\Chapter 14\Firework System\firework.cpp
Book Code\Chapter 14\Firework System\flare.bmp
Book Code\Chapter 14\Firework System\pSystem.cpp
Book Code\Chapter 14\Firework System\pSystem.h
Book Code\Chapter 14\Laser System\block.bmp
Book Code\Chapter 14\Laser System\camera.cpp
Book Code\Chapter 14\Laser System\camera.h
Book Code\Chapter 14\Laser System\d3dUtility.cpp
Book Code\Chapter 14\Laser System\d3dUtility.h
Book Code\Chapter 14\Laser System\desert.bmp
Book Code\Chapter 14\Laser System\flare.bmp
Book Code\Chapter 14\Laser System\flare_alpha notes.txt
Book Code\Chapter 14\Laser System\flare_alpha.dds
Book Code\Chapter 14\Laser System\Laser System.sln
Book Code\Chapter 14\Laser System\Laser System.vcproj
Book Code\Chapter 14\Laser System\laser.cpp
Book Code\Chapter 14\Laser System\pSystem.cpp
Book Code\Chapter 14\Laser System\pSystem.h
Book Code\Chapter 14\Snow System\block.bmp
Book Code\Chapter 14\Snow System\camera.cpp
Book Code\Chapter 14\Snow System\camera.h
Book Code\Chapter 14\Snow System\d3dUtility.cpp
Book Code\Chapter 14\Snow System\d3dUtility.h
Book Code\Chapter 14\Snow System\desert.bmp
Book Code\Chapter 14\Snow System\pSystem.cpp
Book Code\Chapter 14\Snow System\pSystem.h
Book Code\Chapter 14\Snow System\Snow System.sln
Book Code\Chapter 14\Snow System\Snow System.vcproj
Book Code\Chapter 14\Snow System\snow.cpp
Book Code\Chapter 14\Snow System\snowball.bmp
Book Code\Chapter 14\Snow System\snowflake notes.txt
Book Code\Chapter 14\Snow System\snowflake.dds
Book Code\Chapter 15\Pick\d3dUtility.cpp
Book Code\Chapter 15\Pick\d3dUtility.h
Book Code\Chapter 15\Pick\Pick.sln
Book Code\Chapter 15\Pick\Pick.vcproj
Book Code\Chapter 15\Pick\pickSample.cpp
Book Code\Chapter 16\Transform\d3dUtility.cpp
Book Code\Chapter 16\Transform\d3dUtility.h
Book Code\Chapter 16\Transform\transform.cpp
Book Code\Chapter 16\Transform\Transform.sln
Book Code\Chapter 16\Transform\transform.txt
Book Code\Chapter 16\Transform\Transform.vcproj
Book Code\Chapter 17\VS Diffuse Lighting\d3dUtility.cpp
Book Code\Chapter 17\VS Diffuse Lighting\d3dUtility.h
Book Code\Chapter 17\VS Diffuse Lighting\diffuse.txt
Book Code\Chapter 17\VS Diffuse Lighting\VS Diffuse Lighting.sln
Book Code\Chapter 17\VS Diffuse Lighting\VS Diffuse Lighting.vcproj
Book Code\Chapter 17\VS Diffuse Lighting\vs_diffuse.cpp
Book Code\Chapter 17\VS Toon 1 No Outlines\d3dUtility.cpp
Book Code\Chapter 17\VS Toon 1 No Outlines\d3dUtility.h
Book Code\Chapter 17\VS Toon 1 No Outlines\toon.cpp
Book Code\Chapter 17\VS Toon 1 No Outlines\toon.txt
Book Code\Chapter 17\VS Toon 1 No Outlines\toonshade.bmp
Book Code\Chapter 17\VS Toon 1 No Outlines\VS Toon 1 No Outlines.sln
Book Code\Chapter 17\VS Toon 1 No Outlines\VS Toon 1 No Outlines.vcproj
Book Code\Chapter 17\VS Toon 2 With Outlines\d3dUtility.cpp
Book Code\Chapter 17\VS Toon 2 With Outlines\d3dUtility.h
Book Code\Chapter 17\VS Toon 2 With Outlines\outline.txt
Book Code\Chapter 17\VS Toon 2 With Outlines\silhouetteEdges.cpp
Book Code\Chapter 17\VS Toon 2 With Outlines\silhouetteEdges.h
Book Code\Chapter 17\VS Toon 2 With Outlines\toon.cpp
Book Code\Chapter 17\VS Toon 2 With Outlines\toon.txt
Book Code\Chapter 17\VS Toon 2 With Outlines\toonshade.bmp
Book Code\Chapter 17\VS Toon 2 With Outlines\VS Toon 2 With Outlines.sln
Book Code\Chapter 17\VS Toon 2 With Outlines\VS Toon 2 With Outlines.vcproj
Book Code\Chapter 18\PS MultiTexture\crate.bmp
Book Code\Chapter 18\PS MultiTexture\d3dUtility.cpp
Book Code\Chapter 18\PS MultiTexture\d3dUtility.h
Book Code\Chapter 18\PS MultiTexture\PS MultiTexture.sln
Book Code\Chapter 18\PS MultiTexture\PS MultiTexture.vcproj
Book Code\Chapter 18\PS MultiTexture\ps_multitex.cpp
Book Code\Chapter 18\PS MultiTexture\ps_multitex.txt
Book Code\Chapter 18\PS MultiTexture\spotlight.bmp
Book Code\Chapter 18\PS MultiTexture\text.bmp
Book Code\Chapter 19\CartoonEffect\CartoonEffect.sln
Book Code\Chapter 19\CartoonEffect\CartoonEffect.vcproj
Book Code\Chapter 19\CartoonEffect\d3dUtility.cpp
Book Code\Chapter 19\CartoonEffect\d3dUtility.h
Book Code\Chapter 19\CartoonEffect\tooneffect.cpp
Book Code\Chapter 19\CartoonEffect\tooneffect.txt
Book Code\Chapter 19\CartoonEffect\toonshade.bmp
Book Code\Chapter 19\Fog Effect\camera.cpp
Book Code\Chapter 19\Fog Effect\camera.h
Book Code\Chapter 19\Fog Effect\coastMountain64.raw
Book Code\Chapter 19\Fog Effect\d3dUtility.cpp
Book Code\Chapter 19\Fog Effect\d3dUtility.h
Book Code\Chapter 19\Fog Effect\Fog Effect.sln
Book Code\Chapter 19\Fog Effect\Fog Effect.vcproj
Book Code\Chapter 19\Fog Effect\fog.cpp
Book Code\Chapter 19\Fog Effect\fog.txt
Book Code\Chapter 19\Fog Effect\terrain.cpp
Book Code\Chapter 19\Fog Effect\terrain.h
Book Code\Chapter 19\Lighting and Texturing\d3dUtility.cpp
Book Code\Chapter 19\Lighting and Texturing\d3dUtility.h
Book Code\Chapter 19\Lighting and Texturing\Lighting and Texturing.ncb
Book Code\Chapter 19\Lighting and Texturing\Lighting and Texturing.sln
Book Code\Chapter 19\Lighting and Texturing\Lighting and Texturing.suo
Book Code\Chapter 19\Lighting and Texturing\Lighting and Texturing.vcproj
Book Code\Chapter 19\Lighting and Texturing\Lighting and Texturing.vcproj.LIULIN.Administrator.user
Book Code\Chapter 19\Lighting and Texturing\light_tex.txt
Book Code\Chapter 19\Lighting and Texturing\light_tex_effect.cpp
Book Code\Chapter 19\Lighting and Texturing\mountain.x
Book Code\Chapter 19\Lighting and Texturing\Terrain_3x_diffcol.jpg
Book Code\Chapter 19\Lighting and Texturing\UpgradeLog.XML
Book Code\Chapter 19\Lighting and Texturing\_UpgradeReport_Files\UpgradeReport.css
Book Code\Chapter 19\Lighting and Texturing\_UpgradeReport_Files\UpgradeReport.xslt
Book Code\Chapter 19\Lighting and Texturing\_UpgradeReport_Files\UpgradeReport_Minus.gif
Book Code\Chapter 19\Lighting and Texturing\_UpgradeReport_Files\UpgradeReport_Plus.gif
Book Code\Chapter 2\no samples for chap2.txt
Book Code\Chapter 3\Cube\cube.cpp
Book Code\Chapter 3\Cube\Cube.sln
Book Code\Chapter 3\Cube\Cube.vcproj
Book Code\Chapter 3\Cube\d3dUtility.cpp
Book Code\Chapter 3\Cube\d3dUtility.h
Book Code\Chapter 3\D3DXCreate\d3dUtility.cpp
Book Code\Chapter 3\D3DXCreate\d3dUtility.h
Book Code\Chapter 3\D3DXCreate\d3dxcreate.cpp
Book Code\Chapter 3\D3DXCreate\D3DXCreate.sln
Book Code\Chapter 3\D3DXCreate\D3DXCreate.vcproj
Book Code\Chapter 3\Teapot\d3dUtility.cpp
Book Code\Chapter 3\Teapot\d3dUtility.h
Book Code\Chapter 3\Teapot\teapot.cpp
Book Code\Chapter 3\Teapot\Teapot.sln
Book Code\Chapter 3\Teapot\Teapot.vcproj
Book Code\Chapter 3\Triangle\d3dUtility.cpp
Book Code\Chapter 3\Triangle\d3dUtility.h
Book Code\Chapter 3\Triangle\triangle.cpp
Book Code\Chapter 3\Triangle\Triangle.sln
Book Code\Chapter 3\Triangle\Triangle.vcproj
Book Code\Chapter 4\Colore Triangle\Colore Triangle.sln
Book Code\Chapter 4\Colore Triangle\Colore Triangle.vcproj
Book Code\Chapter 4\Colore Triangle\colorTriangle.cpp
Book Code\Chapter 4\Colore Triangle\d3dUtility.cpp
Book Code\Chapter 4\Colore Triangle\d3dUtility.h
Book Code\Chapter 5\directional light\d3dUtility.cpp
Book Code\Chapter 5\directional light\d3dUtility.h
Book Code\Chapter 5\directional light\directional light.sln
Book Code\Chapter 5\directional light\directional light.vcproj
Book Code\Chapter 5\directional light\directionalLight.cpp
Book Code\Chapter 5\lit pyramid\d3dUtility.cpp
Book Code\Chapter 5\lit pyramid\d3dUtility.h
Book Code\Chapter 5\lit pyramid\lit pyramid.sln
Book Code\Chapter 5\lit pyramid\lit pyramid.vcproj
Book Code\Chapter 5\lit pyramid\litPyramid.cpp
Book Code\Chapter 5\point light\d3dUtility.cpp
Book Code\Chapter 5\point light\d3dUtility.h
Book Code\Chapter 5\point light\point light.sln
Book Code\Chapter 5\point light\point light.vcproj
Book Code\Chapter 5\point light\pointLight.cpp
Book Code\Chapter 5\spot light\d3dUtility.cpp
Book Code\Chapter 5\spot light\d3dUtility.h
Book Code\Chapter 5\spot light\spot light.sln
Book Code\Chapter 5\spot light\spot light.vcproj
Book Code\Chapter 5\spot light\spotLight.cpp
Book Code\Chapter 6\AddressModes\addressModes.cpp
Book Code\Chapter 6\AddressModes\AddressModes.sln
Book Code\Chapter 6\AddressModes\AddressModes.vcproj
Book Code\Chapter 6\AddressModes\d3dUtility.cpp
Book Code\Chapter 6\AddressModes\d3dUtility.h
Book Code\Chapter 6\AddressModes\dx5_logo.bmp
Book Code\Chapter 6\TexCube\crate.jpg
Book Code\Chapter 6\TexCube\cube.cpp
Book Code\Chapter 6\TexCube\cube.h
Book Code\Chapter 6\TexCube\d3dUtility.cpp
Book Code\Chapter 6\TexCube\d3dUtility.h
Book Code\Chapter 6\TexCube\texCube.cpp
Book Code\Chapter 6\TexCube\TexCube.sln
Book Code\Chapter 6\TexCube\TexCube.vcproj
Book Code\Chapter 6\TexCube\vertex.h
Book Code\Chapter 6\TexQuad\d3dUtility.cpp
Book Code\Chapter 6\TexQuad\d3dUtility.h
Book Code\Chapter 6\TexQuad\dx5_logo.bmp
Book Code\Chapter 6\TexQuad\texQuad.cpp
Book Code\Chapter 6\TexQuad\TexQuad.sln
Book Code\Chapter 6\TexQuad\TexQuad.vcproj
Book Code\Chapter 7\MtrlAlpha\crate.jpg
Book Code\Chapter 7\MtrlAlpha\d3dUtility.cpp
Book Code\Chapter 7\MtrlAlpha\d3dUtility.h
Book Code\Chapter 7\MtrlAlpha\mtrlAlpha.cpp
Book Code\Chapter 7\MtrlAlpha\MtrlAlpha.sln
Book Code\Chapter 7\MtrlAlpha\MtrlAlpha.vcproj
Book Code\Chapter 7\texAlpha\alphachannel.bmp
Book Code\Chapter 7\texAlpha\crate.jpg
Book Code\Chapter 7\texAlpha\cratewalpha.dds
Book Code\Chapter 7\texAlpha\cube.cpp
Book Code\Chapter 7\texAlpha\cube.h
Book Code\Chapter 7\texAlpha\d3dUtility.cpp
Book Code\Chapter 7\texAlpha\d3dUtility.h
Book Code\Chapter 7\texAlpha\lobbyxpos.JPG
Book Code\Chapter 7\texAlpha\texAlpha.cpp
Book Code\Chapter 7\texAlpha\texAlpha.sln
Book Code\Chapter 7\texAlpha\texAlpha.vcproj
Book Code\Chapter 7\texAlpha\vertex.h
Book Code\Chapter 8\Stencil Mirror\brick0.jpg
Book Code\Chapter 8\Stencil Mirror\checker.jpg
Book Code\Chapter 8\Stencil Mirror\d3dUtility.cpp
Book Code\Chapter 8\Stencil Mirror\d3dUtility.h
Book Code\Chapter 8\Stencil Mirror\ice.bmp
Book Code\Chapter 8\Stencil Mirror\Stencil Mirror.sln
Book Code\Chapter 8\Stencil Mirror\Stencil Mirror.vcproj
Book Code\Chapter 8\Stencil Mirror\stencilmirror.cpp
Book Code\Chapter 8\Stencil Mirror Shadow\brick0.jpg
Book Code\Chapter 8\Stencil Mirror Shadow\checker.jpg
Book Code\Chapter 8\Stencil Mirror Shadow\d3dUtility.cpp
Book Code\Chapter 8\Stencil Mirror Shadow\d3dUtility.h
Book Code\Chapter 8\Stencil Mirror Shadow\ice.bmp
Book Code\Chapter 8\Stencil Mirror Shadow\Stencil Mirror Shadow.sln
Book Code\Chapter 8\Stencil Mirror Shadow\Stencil Mirror Shadow.vcproj
Book Code\Chapter 8\Stencil Mirror Shadow\stencilmirrorshadow.cpp
Book Code\Chapter 8\Stencil Shadow\brick0.jpg
Book Code\Chapter 8\Stencil Shadow\checker.jpg
Book Code\Chapter 8\Stencil Shadow\d3dUtility.cpp
Book Code\Chapter 8\Stencil Shadow\d3dUtility.h
Book Code\Chapter 8\Stencil Shadow\ice.bmp
Book Code\Chapter 8\Stencil Shadow\Stencil Shadow.sln
Book Code\Chapter 8\Stencil Shadow\Stencil Shadow.vcproj
Book Code\Chapter 8\Stencil Shadow\stencilshadow.cpp
Book Code\Chapter 9\CFont\cfont.cpp
Book Code\Chapter 9\CFont\CFont.sln
Book Code\Chapter 9\CFont\CFont.vcproj
Book Code\Chapter 9\CFont\d3dfont.cpp
Book Code\Chapter 9\CFont\d3dfont.h
Book Code\Chapter 9\CFont\d3dutil.cpp
Book Code\Chapter 9\CFont\d3dutil.h
Book Code\Chapter 9\CFont\d3dUtility.cpp
Book Code\Chapter 9\CFont\d3dUtility.h
Book Code\Chapter 9\CFont\dxutil.cpp
Book Code\Chapter 9\CFont\dxutil.h
Book Code\Chapter 9\D3DXCreateText\d3dUtility.cpp
Book Code\Chapter 9\D3DXCreateText\d3dUtility.h
Book Code\Chapter 9\D3DXCreateText\d3dxcreatetext.cpp
Book Code\Chapter 9\D3DXCreateText\D3DXCreateText.sln
Book Code\Chapter 9\D3DXCreateText\D3DXCreateText.vcproj
Book Code\Chapter 9\ID3DXFont\d3dUtility.cpp
Book Code\Chapter 9\ID3DXFont\d3dUtility.h
Book Code\Chapter 9\ID3DXFont\id3dxfont.cpp
Book Code\Chapter 9\ID3DXFont\ID3DXFont.sln
Book Code\Chapter 9\ID3DXFont\ID3DXFont.vcproj
Book Code\Chapter 19\Lighting and Texturing\Debug
Book Code\Chapter 19\Lighting and Texturing\_UpgradeReport_Files
Book Code\Chapter 1\D3D9 Init
Book Code\Chapter 10\D3DXCreateMeshFVF
Book Code\Chapter 11\Bounding Volumes
Book Code\Chapter 11\Progressive Mesh
Book Code\Chapter 11\XFile
Book Code\Chapter 12\Camera
Book Code\Chapter 13\Terrain
Book Code\Chapter 14\Firework System
Book Code\Chapter 14\Laser System
Book Code\Chapter 14\Snow System
Book Code\Chapter 15\Pick
Book Code\Chapter 16\Transform
Book Code\Chapter 17\VS Diffuse Lighting
Book Code\Chapter 17\VS Toon 1 No Outlines
Book Code\Chapter 17\VS Toon 2 With Outlines
Book Code\Chapter 18\PS MultiTexture
Book Code\Chapter 19\CartoonEffect
Book Code\Chapter 19\Fog Effect
Book Code\Chapter 19\Lighting and Texturing
Book Code\Chapter 3\Cube
Book Code\Chapter 3\D3DXCreate
Book Code\Chapter 3\Teapot
Book Code\Chapter 3\Triangle
Book Code\Chapter 4\Colore Triangle
Book Code\Chapter 5\directional light
Book Code\Chapter 5\lit pyramid
Book Code\Chapter 5\point light
Book Code\Chapter 5\spot light
Book Code\Chapter 6\AddressModes
Book Code\Chapter 6\TexCube
Book Code\Chapter 6\TexQuad
Book Code\Chapter 7\MtrlAlpha
Book Code\Chapter 7\texAlpha
Book Code\Chapter 8\Stencil Mirror
Book Code\Chapter 8\Stencil Mirror Shadow
Book Code\Chapter 8\Stencil Shadow
Book Code\Chapter 9\CFont
Book Code\Chapter 9\D3DXCreateText
Book Code\Chapter 9\ID3DXFont
Book Code\Chapter 1
Book Code\Chapter 10
Book Code\Chapter 11
Book Code\Chapter 12
Book Code\Chapter 13
Book Code\Chapter 14
Book Code\Chapter 15
Book Code\Chapter 16
Book Code\Chapter 17
Book Code\Chapter 18
Book Code\Chapter 19
Book Code\Chapter 2
Book Code\Chapter 3
Book Code\Chapter 4
Book Code\Chapter 5
Book Code\Chapter 6
Book Code\Chapter 7
Book Code\Chapter 8
Book Code\Chapter 9
Book Code