DirectX SDK |
The D3DXCreateSphere function creates a sphere of given dimensions.
HRESULT D3DXCreateSphere( LPDIRECT3DDEVICE7 pDevice, float radius, DWORD numSlices, DWORD numStacks, 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.
Windows CE: Unsupported.
Version: Requires DirectX 7.0.
Header: Declared in d3dxshapes.h.
Library: Use d3dx.lib.
D3DXCreateBox, D3DXCreateCylinder, D3DXCreatePolygon, D3DXCreateTeapot, D3DXCreateTorus