DirectX SDK |
When a shape is created using one of the shape drawing functions, an address of a pointer to a ID3DXSimpleShape COM interface is returned in the parameter list. Using this interface, you can obtain the vertex information (stored in a vertex buffer) and the index information.
Drawing the shape is done by a call to the ID3DXSimpleShape::Draw method on the ID3DXSimpleShape interface.
The 3-D shape drawing application programming interface (API) provided by the Direct3DX utility library allows you to draw the following simple geometric shapes:
Before creating the shape, you can specify the number of texture coordinates. Direct3DX will then allocate the appropriate amount of space in the vertex buffer.
For more information, see the Shape Drawing Functions reference topic.