O'Reilly logo

Beginning DirectX®11 Game Programming by Wendy Jones, Allen Sherrod

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Your First DirectX Program

The best way to begin learning DirectX is to start at the beginning by creating simple demo applications. In this chapter we’ll take you step-by-step through the process of creating your very first DirectX application, specifically focusing on Direct3D. By the end of this chapter you will have a firm understanding of the setup of Direct3D from start to finish.

In this chapter:

  • How to create a project

  • How to set up a Windows application

  • How to initialize DirectX

  • How to clear the screen

  • How to display a scene

Creating the Project

This book assumes you’ve already had experience creating C++ projects and working within Visual Studio. In this section and the one to follow we’ll briefly cover the initial setup of a Win32 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required