Microsoft DirectX 8.1 (Visual Basic) |
Uses a left-handed coordinate system to create a mesh containing an axis-aligned box.
object.CreateBox( _ D3DDevice As Direct3DDevice8, _ Width As Single, _ Height As Single, _ Depth As Single, _ RetAdjacency As D3DXBuffer)As D3DXMesh
.D3DXMesh object, representing the output box.
If the method fails, an error is raised and Err.Number can be set to one of the following values.
D3DERR_INVALIDCALL |
D3DXERR_INVALIDCALL |
E_OUTOFMEMORY |
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.