Tutorial 2: Rendering Vertices
Microsoft DirectX 9.0 SDK Update (October 2004)

Tutorial 2: Rendering Vertices


Applications written in Microsoft Direct3D use vertices to draw geometric shapes. Each three-dimensional (3-D) scene includes one or more of these geometric shapes. The Vertices sample project creates the simplest shape, a triangle, and renders it to the display.

This tutorial shows how to use vertices to create a triangle with the following steps:

Steps

Note  The path of the Vertices sample project is:

(SDK root)\Samples\C++\Direct3D\Tutorials\Tut02_Vertices

The sample code in the Vertices project is nearly identical to the sample code in the CreateDevice project. The Rendering Vertices tutorial focuses only on the code unique to vertices and does not cover initializing Direct3D, handling Microsoft Windows messages, rendering, or shutting down. For information about these tasks, see Tutorial 1: Creating a Device.



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.