ID3DXAnimationSet::GetSRT
Gets the scale, rotation, and translation values of the animation set.
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 Values
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.
Requirements
Header: Declared in D3dx9anim.h.