Applications written in Direct3D use vertices to draw geometric shapes. Each three-dimensional (3D) 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:
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 Windows messages, rendering, or shutting down.