Microsoft DirectX 8.1 (C++)

Tutorial 1: Creating a Device

To use Microsoft® Direct3D®, you first create an application window, then you create and initialize Direct3D objects. You use the COM interfaces that these objects implement to manipulate them and to create other objects required to render a scene. The CreateDevice sample project on which this tutorial is based illustrates these tasks by creating a Direct3D device and rendering a blue screen.

This tutorial uses the following steps to initialize Direct3D, render a scene, and eventually shut down.

Note  The path of the CreateDevice sample project is:

    (SDK root)\Samples\Multimedia\Direct3D\Tutorials\Tut01_CreateDevice.