Platform SDK: DirectX |
The D3DXCreatePolygon function creates an n-sided polygon.
HRESULT D3DXCreatePolygon( LPDIRECT3DDEVICE7 pDevice, float sideSize, DWORD numSides, DWORD numTexCoords, ID3DXSimpleShape** ppShape );
If the function succeeds, the return value is S_OK.
If the function fails, the return value may be one of the following values:
This function returns a vertex buffer that can be used later for drawing or manipulation by the application.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Version: Requires DirectX 7.0.
Header: Declared in d3dxshapes.h.
Library: Use d3dx.lib.
D3DXCreateBox, D3DXCreateCylinder, D3DXCreateSphere, D3DXCreateTeapot, D3DXCreateTorus