Chapter 4. Show Something Onscreen!

So far, the code you've written hasn't been all that exciting. In the Chapter 3, “Understanding the Sample Framework,” you spent time examining a lot of the sample framework code. Although it's important to have this code written, you don't get the great excitement of seeing your creation onscreen as you would with the graphical portions of the game.

The framework code examined in the last chapter was leading you to the position of being able to render fancy 3D graphics, so get ready. You're about to write your first 3D rendering code.

In this chapter, you'll learn

  • How to create the Direct3D device

  • How to render onscreen

  • How to load a mesh

  • How to create your camera

Get Beginning 3D Game Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.