d3d9.dllGetSRT
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXAnimationSet::GetSRT Method


Gets the scale, rotation, and translation values of the animation set.

Syntax

HRESULT GetSRT(      

    DOUBLE PeriodicPosition,     UINT Animation,     D3DXVECTOR3 *pScale,     D3DXQUATERNION *pRotation,     D3DXVECTOR3 *pTranslation );

Parameters

PeriodicPosition
[in] Position of the animation set. The position can be obtained by calling ID3DXAnimationSet::GetPeriodicPosition.
Animation
[in] Animation index.
pScale
[out] Pointer to the D3DXVECTOR3 vector that describes the scale of the animation set.
pRotation
[out] Pointer to the D3DXQUATERNION quaternion that describes the rotation of the animation set.
pTranslation
[out] Pointer to the D3DXVECTOR3 vector that describes the translation of the animation set.

Return Value

The return values of this method are implemented by an application programmer. In general, if no error occurs, program the method to return D3D_OK. Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR.





© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.