Microsoft DirectX 8.1 (Visual Basic) |
Retrieves a declaration describing the vertices in the mesh.
object.GetDeclaration( _ Declaration As Long)
If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
This method applies to the following classes, which implement methods from D3DXBaseMesh.
This code fragment shows how to pass in a D3DXDECLARATOR to retrieve the declaration of a mesh. This assumes there is an existing D3DXMesh object (d3dxm) that contains a mesh.
Dim d3dxd As D3DXDECLARATOR 'This assumes that (d3dxm) has been properly initialized Call d3dxd.GetDeclaration(d3dxd.Value(0))