Platform SDK: DirectX |
The D3DXCreateTeapot function creates a teapot.
HRESULT D3DXCreateTeapot( LPDIRECT3DDEVICE7 pDevice, 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, D3DXCreatePolygon, D3DXCreateSphere, D3DXCreateTorus