ID3DXAnimationSet::GetSRT method
Gets the scale, rotation, and translation values of the animation set.
Syntax
HRESULT GetSRT(
[in] DOUBLE PeriodicPosition,
[in] UINT Animation,
[out] D3DXVECTOR3 *pScale,
[out] D3DXQUATERNION *pRotation,
[out] D3DXVECTOR3 *pTranslation
);
Parameters
-
PeriodicPosition [in]
-
Type: DOUBLE
Position of the animation set. The position can be obtained by calling ID3DXAnimationSet::GetPeriodicPosition.
-
Animation [in]
-
Type: UINT
Animation index.
-
pScale [out]
-
Type: D3DXVECTOR3*
Pointer to the D3DXVECTOR3 vector that describes the scale of the animation set.
-
pRotation [out]
-
Type: D3DXQUATERNION*
Pointer to the D3DXQUATERNION quaternion that describes the rotation of the animation set.
-
pTranslation [out]
-
Type: D3DXVECTOR3*
Pointer to the D3DXVECTOR3 vector that describes the translation of the animation set.
Return value
Type: HRESULT
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
Requirement | Value |
---|---|
Header |
|
Library |
|
See also