Microsoft DirectX 8.1 (C++) |
Uses a left-handed coordinate system to create a mesh containing an axis-aligned box.
HRESULT D3DXCreateBox( LPDIRECT3DDEVICE8 pDevice, FLOAT Width, FLOAT Height, FLOAT Depth, 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 box is centered at the origin.
Header: Declared in D3dx8shape.h.
Import Library: Use D3dx8.lib.