Platform SDK: DirectX |
The D3DXCreateBox function creates a box (cuboid) of given dimensions.
HRESULT D3DXCreateBox( LPDIRECT3DDEVICE7 pDevice, float width, float height, float depth, 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.
D3DXCreateCylinder, D3DXCreatePolygon, D3DXCreateSphere, D3DXCreateTeapot, D3DXCreateTorus