| Microsoft DirectX 8.1 (Visual Basic) |
Uses a left-handed coordinate system to create a mesh containing a cylinder.
object.CreateCylinder( _
Device As Direct3DDevice8, _
Radius1 As Single, _
Radius2 As Single
Length As Single, _
Slices As Long, _
Stacks As Long, _
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_INVALIDDATA |
| E_OUTOFMEMORY |
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
Cube textures differ from other surfaces in that they are collections of surfaces. To call SetRenderTarget with a cube texture, you must select an individual face using Direct3DCubeTexture8.GetCubeMapSurface and pass the resulting surface to SetRenderTarget