Microsoft DirectX 8.1 (C++) |
Uses a left-handed coordinate system to create a mesh containing an n-sided polygon.
HRESULT D3DXCreatePolygon( LPDIRECT3DDEVICE8 pDevice, FLOAT Length, UINT Sides, LPD3DXMESH* ppMesh, LPD3DXBUFFER* ppAdjacency );
If the function succeeds, the return value is D3D_OK.
If the function fails, the return value can be one of the following values.
D3DERR_INVALIDCALL |
D3DXERR_INVALIDDATA |
E_OUTOFMEMORY |
The created polygon is centered at the origin.
Header: Declared in D3dx8shape.h.
Import Library: Use D3dx8.lib.