?/TD> |
Microsoft DirectX 9.0 |
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:
(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.