Microsoft DirectX 8.1 (Visual Basic)

D3DXSPMesh.GetDeclaration

Retrieves a declaration describing the vertices in the mesh.

object.GetDeclaration( _ 
    Declaration As Long)

Parts

object
Object expression that resolves to a D3DXSPMesh object.
Declaration
First element of an array describing the vertex format of the vertices in the queried mesh. The upper limit of this declarator array is MAX_FVF_DECL_SIZE, limiting the declarator to a maximum of 20 Long values.

Error Codes

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.

See Also

D3DXSPMesh.GetFVF