You're now at the point where you can write an application that creates every object necessary to generate a window capable of rendering and presenting a Direct3D scene (even though we haven't yet covered the actual 3D content). Figure 5-10 shows a screen shot of the output of the code for this chapter. This code generates two lights—one red and one green. Each light moves around the scene and cycles between the point light, directional light, and spotlight types. By watching this code in action, you'll be able to see firsthand how the various lights can be used to illuminate a scene and how different each effect is.
Figure 5-10 The scene with rendered colored lights.