KeyframedAnimationSet.RegisterAnimationKeys(String,KeyVector3[],KeyQuaternion[],KeyVector3[]) Method (Microsoft.DirectX.Direct3D)

Registers all of the scale, rotate, and translate (SRT) keyframe data of an animation, and fills arrays with SRT key data used for keyframe animation.

Definition

Visual Basic Public Function RegisterAnimationKeys( _
    ByVal animationName As String, _
    ByVal scaleKeys() As KeyVector3, _
    ByVal rotationKeys() As KeyQuaternion, _
    ByVal translationKeys() As KeyVector3 _
) As Integer
C# public int RegisterAnimationKeys(
    string animationName,
    KeyVector3[] scaleKeys,
    KeyQuaternion[] rotationKeys,
    KeyVector3[] translationKeys
);
C++ public:
int RegisterAnimationKeys(
    StringLeave SiteanimationName,
    array<KeyVector3>^ scaleKeys,
    array<KeyQuaternion>^ rotationKeys,
    array<KeyVector3>^ translationKeys
);
JScript public function RegisterAnimationKeys(
    animationName : String,
    scaleKeys : KeyVector3[],
    rotationKeys : KeyQuaternion[],
    translationKeys : KeyVector3[]
) : int;

Parameters

animationName System.String
String that contains the animation name.
scaleKeys Microsoft.DirectX.Direct3D.KeyVector3[]
Array of KeyVector3 structures that contain animation scale data.
rotationKeys Microsoft.DirectX.Direct3D.KeyQuaternion[]
Array of KeyQuaternion structures that contain animation rotation data.
translationKeys Microsoft.DirectX.Direct3D.KeyVector3[]
Array of KeyVector3 structures that contain animation translation data.

Return Value

System.Int32
The animation index.

Remarks

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

See Also