DirectX SDK

Shape Drawing Functions

The 3-D shape drawing application programming interface (API) provided by the Direct3DX utility library supplies functions to draw simple geometric shapes.

This section contains information about the following Direct3DX global functions:

All shapes are returned as vertex-buffers. Since shapes are vertex-buffers, the flexible vertex format type can be found by querying the vertex-buffer itself. Each vertex buffer is filled with vertices, all of which can be used to draw a primitive as a triangle-list.

For more information, see Flexible Vertex Format Flags.