Microsoft DirectX 8.0 (C++) |
Uses a left-handed coordinate system to create a mesh containing a sphere.
HRESULT D3DXCreateSphere( LPDIRECT3DDEVICE8 pDevice, FLOAT Radius, UINT Slices, UINT Stacks, 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 sphere is centered at the origin, and its axis is aligned with the z-axis.
Header: Declared in D3dx8shape.h.
Import Library: Use D3dx8.lib.