Microsoft DirectX 9.0

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 Component Object Model (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\C++\Direct3D\Tutorials\Tut01_CreateDevice.

© 2002 Microsoft Corporation. All rights reserved.