Direct3D Retained-Mode Tutorial

To create a Windows-based Direct3D Retained-Mode application, you set up the features of two different environments: the devices, viewports, and color capabilities of the Windows environment, and the models, textures, lights, and positions of the virtual environment. This section is a tutorial that contains all the code for a simple Retained-Mode application. The following illustration is a single frame from the running animation:

The tutorial is divided into the following sections:

·About Helworld.c

·Definitions and Global Variables

·Windows Setup and Initialization

·Enumerating Device Drivers

·Setting up the 3D Environment

·The Rendering Loop

·Creating the Scene

·Cleaning Up