IDirect3DRMAnimation::AddRotateKey

HRESULT AddRotateKey(D3DVALUE rvTime, D3DRMQUATERNION *rqQuat);

Adds a rotate key to the animation.

·Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.

rvTime

Time in the animation to store the rotate key. The time units are arbitrary and zero-based; a key whose rvTime value is 49 occurs exactly in the middle of an animation whose last key has an rvTime value of 99.

rqQuat

Quaternion representing the rotation.

This method applies a rotation transformation. For information about the matrix mathematics involved in transformations, see 3D Transformations.